-
Notifications
You must be signed in to change notification settings - Fork 104
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
Feature: Split TV/Radio into separate main menus #386
Conversation
195a64f
to
4f90642
Compare
4b0ac64
to
32c81ac
Compare
9021df5
to
d361a35
Compare
1e08500
to
52546e4
Compare
fe52743
to
c8d1e56
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Valid question. The Split into Radio and TV is done for all versions. Thanks you asked and made me recheck as I now found an issue with adding the Well, I cannot boil the ocean and will look at a more robust way to handle this for RPC v6 and higher. |
Update see below. |
Rebased to master. |
Tested with a lot of old versions (11, 12.3, 13.2, 14.2, 15.2, 16.1, 17.6, 18.4 and 19.1) and worked out the handling of PVR commands:
It is a bit frustrating to see such inconsistent behaviour. I cannot rely solely on the API supporting a request, and the behaviour might even depend on the PVR add-on. I now decided to configure the feature as follows:
As a result the Remote App supports TV and Radio separate channel lists and channel groups from xbmc 12 on. The behaviour for recordings and timers is the same as before (always showing the aggregated lists including both Radio and TV items) until Kodi 19. Only with Kodi 19 you get the full experience also showing filtered results for recordings and timers. At least this PR still gives a more direct access to Radio and TV channels instead of being required to do multiple clicks to get there. |
@kambala-decapitator, if you are generally fine with the code I will squash where possible and mark it as ready-for-review to allow merging it. I see no other way getting further test depth than to bring this to TF. Right after this one we can add the Video menu PR. It is partly building on top of this, but will need some rebasing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with the approach and apart from minor requested changes looks good.
Ok. I just submitted the fixups and will later today do the squashing and rebasing. |
Important remark: The persistence depends on the API method and the parameters. As they are typically same for TV and Radio (the results are filtered later) the object "lifetime" is commented out for Radio. This gives the required difference which now allows to have separate Radio and Live TV persistence.
Squashed and rebased to master. |
Description
Closes #221.
Current Kodi server (v19) splits PVR into "TV" and "Radio" main menus. With this PR the Remote App now follows this principle as well. When entering TV or Radio menu, the full channel list is shown as default. In addition, it is possible to navigate through the channel groups, recordings and timers as before.
Menu structure (example based on Live TV): https://abload.de/img/bildschirmfoto2021-09a2kze.png
Summary for release notes
Feature: Split TV/Radio into separate main menus