-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "My programs" menu #213
Conversation
9af9b48
to
264f983
Compare
33c9fc6
to
9e9a07c
Compare
2781d73
to
de3f996
Compare
d1e822e
to
422f340
Compare
bfdfaa8
to
d538c72
Compare
I know why the "My Programs" feature doesn't work properly. You need a different "new" X-VRT-Token. The X-VRT-Token we use now to get the VOD streams that require a login doesn't work with For testing purposes only, I implemented the new "slow" X-VRT-Token to my test branch: mediaminister@6463b66 But, I don't like the fact that the "My programs" feature will slow down video playback or menu loading. I noticed this feature requests an X-VRT-Token when starting the add-on. This blocks loading the main menu for seconds. I don't like that. |
@mediaminister Thanks for the investigative work! However it should not slow down video playback or menu loading. As it only needs to be downloaded once every hour. And we can disable 'My programs' by default if that would be an issue. BTW One option could be asynchronous downloads for cached objects. More caching (e.g. for A-Z listing and categories) is on my wishlist.
It shouldn't. Unless you enter the "My programs" menu and the favorites cache has expired and the token is invalidated, no token is being downloaded. So we already go to great lengths to make this fast. Improvements are definitely welcome. I used to have an option to disable "My programs", but I made that invisible since I don't think this negatively impacts our users, instead I think this a great feature. I had my doubts, but I use it now all the time. This also makes it possible for Parental Control as it gives parents the possibility to select the programs children are allowed to watch and keep everything else locked. |
I noticed your implementation replaced the original XVRTToken code, but I would separate them, and only use the short-lived token when it is needed. |
1d79a0a
to
fc48abc
Compare
So I would like to merge this, sooner rather than later. Everything that's unrelated to "My programs" has been removed from this PR and merged in separate PRs. |
This PR adds a way of tracking the programs you follow. - Add a context menu to programs or episodes with either "Follow" or "Unfollow" - Download and cache favorites from VRT NU - Add an A-Z listing of followed programs - Add a Recent listing of followed programs - Add invisible setting 'usefavorites' to disable "My programs" (for unit tests) - Disable brand filter in "My programs" recent listing (should be configurable really)
Still one big problem: "My programs" asks the user for credentials and requests an X-VRT-Token when starting the add-on. This blocks loading the main menu for seconds. This impacts all (new) users, especially those who don't use the "my programs" menu. |
You are right, and it's easy to fix by only activating "My programs" when we have credentials and an token. These things are fixable and I agree we shouldn't annoy users that only are interested in the live streams, or browsing the programs without ever playing one :-) So let's fix it, rather than repeat the issues. |
That's a workaround. "My Programs" shouldn't make any requests to a server in the constructor. Especially when this is privacy sensitive information and the user has not initiated the request. Just my point of view. I really don't like the fact that the add-on is downloading all my personal tv viewing data in a json file without me knowing or allowing it. |
Despite that, if you are concerned people are snooping the stuff your are viewing because of the JSON download, you are not trusting HTTPS. If that concern is warranted, you have a big problem using on-demand streaming, because that would be actual TV viewing data and is also using HTTPS. If the concern is that these favorites are stored on your system, bad luck again, Kodi is storing even more actual TV viewing data already. And not just from VRT NU only. So I don't agree with your assessment, your concerns are general issues related to on-demand streaming or maybe the security concerns with TLS. We could add a warning, but that would relate to the whole addon, not just the "My program" feature, but honestly, a warning would not be able to provide the right depth and balance, and scare most people needlessly. |
This PR adds a way of tracking the programs you follow.
This fixes #181