-
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
Move to using script.module.routing #103
Comments
Actually when i saw your improvement i wanted to post that i know that this exists. But i never came to implement it. But it is alot better indeed. Just never came to implement it |
It is not bad to take small steps as long as we know where we are heading at. Just to say that this is not a priority, but maybe at some point it is easier to do this than continue as before. |
So looking into this a bit deeper, if we go along this path it will break every internal URL from the past (so favourites and watched information will break). So this will probably be v2.0.0 material. We also have to come up with a design for the different routes, I would prefer something more coherent than what we already have. Something like this:
These entries would be self-sufficient and reuse more generic functionality. And one benefit, these URLs are easy for people to call externally. (e.g. to directly jump to a live channel, or today's TV guide). In this scenario we also need to foresee exception handling for no-longer available programs etc. |
Like a said in #300 (comment): This will work with the current workflow of the add-on: VOD without web scraping (fast start of playback): VOD with web scraping (slower start of playback): LIVE without web scraping (fast start of playback): LIVE with web scraping (slower start of playback) But, this doesn't really improve the current interface. Asking for If we completely rethink the add-on workflow, we could make the following work: /play/<program>/<season>/<episode> Or a live channel I will investigate this second option. |
Yes, I would prefer we have a unique sequence for each different input:
But I prefer the second interface, if that is at all possible. We should make something that we can be sure will work regardless of what backend changes will come in the future. Even if that means translating to/from before/after a call. |
I investigated the second interface but for a lot of programs I couldn't ensure that the play url's were completely unique. VRT Search api is a real mess, some programs have no or a wrong episode number and I couldn't find a unique correspondence between a vrtnu url and titles or shortdescription variables. So, I implemented the first interface and made a pull request. With this new interface, automation fans will have fun: Open a specific menu
Directly play a vrtnu url
Directly play a livestream (classic tv zapper)
And definitely a lot more. |
I am genuinely happy we did this, sooner rather than later. But since this breaks existing bookmarks and forgets what was watched we may want to communicate this differently. We have a few options (in order of importance/likeliness):
But the way it looks today, I think we can prepare for a v2.0.0 release, rather than do a v1.10.1 update. |
Describe the bug
Yesterday I stumbled on plugin.video.fosdem and I was charmed by how simple and easy the code was to understand. Now I am convinced we ought to be using script.module.routing as well (I added it to the refactoring roadmap).
See https://github.com/jelly/plugin.video.fosdem/blob/master/addon.py#L56
More information related to script.module.routing:
The text was updated successfully, but these errors were encountered: