Skip to content

Commit 2c03260

Browse files
committed
Support content rating
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.
1 parent 4a78d27 commit 2c03260

10 files changed

+11243
-2
lines changed

pvr.nextpvr/addon.xml.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<addon
33
id="pvr.nextpvr"
4-
version="21.1.0"
4+
version="22.0.0"
55
name="NextPVR PVR Client"
66
provider-name="Graeme Blackley">
77
<requires>@ADDON_DEPENDS@

pvr.nextpvr/resources/instance-settings.xml

+93
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,99 @@
304304
<default>true</default>
305305
<control type="toggle"/>
306306
</setting>
307+
<setting help="30220" id="certcountry" type="string" label="30219">
308+
<level>0</level>
309+
<default>US</default>
310+
<constraints>
311+
<options>
312+
<option>AE</option>
313+
<option>AM</option>
314+
<option>AR</option>
315+
<option>AT</option>
316+
<option>AU</option>
317+
<option>BE</option>
318+
<option>BE-WAL</option>
319+
<option>BG</option>
320+
<option>BH</option>
321+
<option>BN</option>
322+
<option>BO</option>
323+
<option>BR</option>
324+
<option>BY</option>
325+
<option>CA</option>
326+
<option>CA-QC</option>
327+
<option>CH</option>
328+
<option>CL</option>
329+
<option>CO</option>
330+
<option>CR</option>
331+
<option>CY</option>
332+
<option>CZ</option>
333+
<option>DE</option>
334+
<option>DK</option>
335+
<option>EC</option>
336+
<option>EE</option>
337+
<option>EG</option>
338+
<option>ES</option>
339+
<option>FI</option>
340+
<option>FR</option>
341+
<option>GR</option>
342+
<option>HK</option>
343+
<option>HN</option>
344+
<option>HR</option>
345+
<option>HU</option>
346+
<option>ID</option>
347+
<option>IE</option>
348+
<option>IL</option>
349+
<option>IN</option>
350+
<option>IS</option>
351+
<option>IT</option>
352+
<option>JO</option>
353+
<option>JP</option>
354+
<option>KE</option>
355+
<option>KH</option>
356+
<option>KR</option>
357+
<option>KW</option>
358+
<option>KZ</option>
359+
<option>LB</option>
360+
<option>LT</option>
361+
<option>LU</option>
362+
<option>LV</option>
363+
<option>MO</option>
364+
<option>MT</option>
365+
<option>MV</option>
366+
<option>MX</option>
367+
<option>MY</option>
368+
<option>NG</option>
369+
<option>NL</option>
370+
<option>NO</option>
371+
<option>NZ</option>
372+
<option>PE</option>
373+
<option>PH</option>
374+
<option>PL</option>
375+
<option>PT</option>
376+
<option>RO</option>
377+
<option>RU</option>
378+
<option>SA</option>
379+
<option>SE</option>
380+
<option>SG</option>
381+
<option>SK</option>
382+
<option>SV</option>
383+
<option>TH</option>
384+
<option>TR</option>
385+
<option>TW</option>
386+
<option>UA</option>
387+
<option>UK</option>
388+
<option>US</option>
389+
<option>UY</option>
390+
<option>VE</option>
391+
<option>VN</option>
392+
<option>ZA</option>
393+
<option>NONE</option>
394+
</options>
395+
</constraints>
396+
<control type="list" format="string">
397+
<heading>30219</heading>
398+
</control>
399+
</setting>
307400
</group>
308401
<group id="15">
309402
<setting id="heartbeat" type="integer" label="30207" help="30707">

pvr.nextpvr/resources/language/resource.language.en_gb/strings.po

+8
Original file line numberDiff line numberDiff line change
@@ -441,3 +441,11 @@ msgstr ""
441441
msgctxt "#30218"
442442
msgid "Repeating (all episodes)"
443443
msgstr ""
444+
445+
msgctxt "#30219"
446+
msgid "Recording and timer control"
447+
msgstr ""
448+
449+
msgctxt "#30220"
450+
msgid "Default country for rating icons. To disable icons select NONE"
451+
msgstr ""

0 commit comments

Comments
 (0)