Skip to content

Commit

Permalink
Support content rating
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
emveepee committed Jun 29, 2024
1 parent 4a78d27 commit 2c03260
Show file tree
Hide file tree
Showing 10 changed files with 11,243 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pvr.nextpvr/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.nextpvr"
version="21.1.0"
version="22.0.0"
name="NextPVR PVR Client"
provider-name="Graeme Blackley">
<requires>@ADDON_DEPENDS@
Expand Down
93 changes: 93 additions & 0 deletions pvr.nextpvr/resources/instance-settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,99 @@
<default>true</default>
<control type="toggle"/>
</setting>
<setting help="30220" id="certcountry" type="string" label="30219">
<level>0</level>
<default>US</default>
<constraints>
<options>
<option>AE</option>
<option>AM</option>
<option>AR</option>
<option>AT</option>
<option>AU</option>
<option>BE</option>
<option>BE-WAL</option>
<option>BG</option>
<option>BH</option>
<option>BN</option>
<option>BO</option>
<option>BR</option>
<option>BY</option>
<option>CA</option>
<option>CA-QC</option>
<option>CH</option>
<option>CL</option>
<option>CO</option>
<option>CR</option>
<option>CY</option>
<option>CZ</option>
<option>DE</option>
<option>DK</option>
<option>EC</option>
<option>EE</option>
<option>EG</option>
<option>ES</option>
<option>FI</option>
<option>FR</option>
<option>GR</option>
<option>HK</option>
<option>HN</option>
<option>HR</option>
<option>HU</option>
<option>ID</option>
<option>IE</option>
<option>IL</option>
<option>IN</option>
<option>IS</option>
<option>IT</option>
<option>JO</option>
<option>JP</option>
<option>KE</option>
<option>KH</option>
<option>KR</option>
<option>KW</option>
<option>KZ</option>
<option>LB</option>
<option>LT</option>
<option>LU</option>
<option>LV</option>
<option>MO</option>
<option>MT</option>
<option>MV</option>
<option>MX</option>
<option>MY</option>
<option>NG</option>
<option>NL</option>
<option>NO</option>
<option>NZ</option>
<option>PE</option>
<option>PH</option>
<option>PL</option>
<option>PT</option>
<option>RO</option>
<option>RU</option>
<option>SA</option>
<option>SE</option>
<option>SG</option>
<option>SK</option>
<option>SV</option>
<option>TH</option>
<option>TR</option>
<option>TW</option>
<option>UA</option>
<option>UK</option>
<option>US</option>
<option>UY</option>
<option>VE</option>
<option>VN</option>
<option>ZA</option>
<option>NONE</option>
</options>
</constraints>
<control type="list" format="string">
<heading>30219</heading>
</control>
</setting>
</group>
<group id="15">
<setting id="heartbeat" type="integer" label="30207" help="30707">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,3 +441,11 @@ msgstr ""
msgctxt "#30218"
msgid "Repeating (all episodes)"
msgstr ""

msgctxt "#30219"
msgid "Recording and timer control"
msgstr ""

msgctxt "#30220"
msgid "Default country for rating icons. To disable icons select NONE"
msgstr ""
Loading

0 comments on commit 2c03260

Please sign in to comment.