kodi-pvr / pvr.nextpvr

Kodi's NextPVR client addon
GNU General Public License v2.0
22 stars 33 forks source link

Support content rating #264

Closed emveepee closed 2 months ago

emveepee commented 2 months ago

The pvr.nextpvr addon has never populated the RarentalRatingCode supplied with the API. Using XML from https://movielabs.com/md/ratings/ as a standard for parental rating icons, rating systems and parental rating age value. The add-on actually uses a parsed version of the for easier processing using a netcore binary that runs on all NextPVR platforms available on request.

The XML file can also use Kodi resource:// link one example provided for the best available parental icon resource source for Kodi https://github.com/wyrm65/resource.images.classificationicons.colour

Users or skins can also create their own resources addons and use a custom XML file in the userdata folder.

In addition to loading icons this XML file is used for populating the ParentalRating numeric field which are not available by API Although Kodi doesn't use this field to prevent viewing with Parental Controls enabled, a future expansion would make this potentially more important then showing the icon.