2023-10-26, 07:41
I have been doing some work on Tvheadend to enable parental rating labels ('PG', 'PG-13', 'FSK 12', etc) for TV, and I would like to discuss including these labels in the Estuary skin.
https://tvheadend.org/boards/5/topics/50356
TVH can now provide 3 data values relating to parental rating:
1) Recommended age (Already provided by DVB and included in HTSP)
2) The rating label (MPAA in the Kodi videos module and ParentalRatingCode in the PVR/EPG module)
3) The rating icon (Graphical representation of the rating label)
This has involved working with: 1) TVH to extract these fields from EPG data and process them; 2) the Kodi pvr.hts add-on to get those fields into Kodi; 3) the Kodi PVR module to store those fields as properties within the appropriate objects and; 4) the Kodi GUI/Skinning module to allow those properties to be displayed.
Recently, I submitted a PR that exposed the existing PVR EPG database 'ParentalRatingCode' column for use by skins.
https://github.com/xbmc/xbmc/pull/23586
As part of the process for accepting that PR, there was much discussion and fine tuning regarding what field could be shown on which screen and in what format.
I will eventually submit a PR for this latest change and I would like to conduct the design/layout discussion and tine-tuning in this forum rather than on GitHub so that I can just submit an agreed solution.
Rating icons can be shown in two places:
EPG details window (Shared with the recordings details window)
The details side-panel (Shared by the channels list, timers list and recordings list.)
Here are some examples of what I have currently mocked-up. Please note: these mock-ups currently show both the text rating label and the corresponding icon. I plan to implement logic to show only the icon if it is available and only the text if the icon is not.
(EDIT: Images moved to imgur)
In the details window, the height is limited to 75px and in the side panels 50px due to its more compact nature.
Most of the rating icons that I have been able to identify are either mostly square/round or slightly rectangular.
https://github.com/wyrm65/resource.image...ons.colour
https://en.wikipedia.org/wiki/Television...ing_system
Because of this, I allow for icons to have an aspect ration of close to 16:9 before the height is reduced.
Comments welcome.
https://tvheadend.org/boards/5/topics/50356
TVH can now provide 3 data values relating to parental rating:
1) Recommended age (Already provided by DVB and included in HTSP)
2) The rating label (MPAA in the Kodi videos module and ParentalRatingCode in the PVR/EPG module)
3) The rating icon (Graphical representation of the rating label)
This has involved working with: 1) TVH to extract these fields from EPG data and process them; 2) the Kodi pvr.hts add-on to get those fields into Kodi; 3) the Kodi PVR module to store those fields as properties within the appropriate objects and; 4) the Kodi GUI/Skinning module to allow those properties to be displayed.
Recently, I submitted a PR that exposed the existing PVR EPG database 'ParentalRatingCode' column for use by skins.
https://github.com/xbmc/xbmc/pull/23586
As part of the process for accepting that PR, there was much discussion and fine tuning regarding what field could be shown on which screen and in what format.
I will eventually submit a PR for this latest change and I would like to conduct the design/layout discussion and tine-tuning in this forum rather than on GitHub so that I can just submit an agreed solution.
Rating icons can be shown in two places:
EPG details window (Shared with the recordings details window)
The details side-panel (Shared by the channels list, timers list and recordings list.)
Here are some examples of what I have currently mocked-up. Please note: these mock-ups currently show both the text rating label and the corresponding icon. I plan to implement logic to show only the icon if it is available and only the text if the icon is not.
(EDIT: Images moved to imgur)
In the details window, the height is limited to 75px and in the side panels 50px due to its more compact nature.
Most of the rating icons that I have been able to identify are either mostly square/round or slightly rectangular.
https://github.com/wyrm65/resource.image...ons.colour
https://en.wikipedia.org/wiki/Television...ing_system
Because of this, I allow for icons to have an aspect ration of close to 16:9 before the height is reduced.
Comments welcome.