Parental Rating (G, PG, etc)

Started by DeltaMikeCharlie, July 19, 2023, 12:00:59 PM

Previous topic - Next topic

DeltaMikeCharlie

I have noticed that the parental rating does not get into the TVH EPG database.  This is because TVH does not understand the 'ACMA' codes.

<rating system="ACMA">
<value>PG</value>
</rating>

In my investigation of the TVH source code, I discovered that it will also accept a raw number if it is provided and that number will be used as the parental rating value.

<rating system="ACMA">
<value>11</value>
</rating>

Normally, the EIT rating provided is the recommended age minus 3.  TVH, on the other hand, expects the actual recommended age to be provided via XMLTV.

Based on experiments long ago on a Topfield PVR feeding in EIT data, here are the codes and adjusted age values that it uses:

6 = "P"
7/8 = "C"
9/10 = "G"
11/12 = "PG"
13/14 = "M"
15/16 = "MA"
17 = "AV"
18 = "R"

The rules may have changes since then.

prl

Here's a more complete list. The missing entries take the rating string for the previous entry (e.g. 0x06 & 0x07 are both "G" rated).
0x00 Not Classified (the short-form onscreen display is empty)
0x02 P  Preschool
0x04 C  Children
0x06 G  General
0x08 PG Parental Guidance
0x0A M  Mature Adult Audience 15+
0x0C M  Mature Adult Audience 15+
0x0E AV Adult, Strong Violence 15+
0x0F R  Restricted 18+

That's from a draft of AS45991.2004. I'm not inclined to pay for the real standards.

The mappings from the code value to the short and the long rating name and to the name of the corresponding rating symbol bitmap for the Beyonwiz are in the AusClassifications class in
https://bitbucket.org/beyonwiz/easy-ui-4/src/master/lib/python/Components/Converter/EventName.py
Peter
Beyonwiz T4 in-use
Beyonwiz T2, T3, T4, U4 & V2 for testing

DeltaMikeCharlie

Thanks for the update.

I have found multiple conflicting lists on the Internet.  Naturally, they all conflict with both what Beyonwiz and Topfield do.

In some ways, the number that the mnemonic gets converted to by TVH does not matter very much as long as that number gets converted back to the same mnemonic for display.  Although it would be nice to match what Australian broadcasters use.

As a mild aside, internally, Kodi ever only refers the rating field as the 'MPAA' field.  It is a string field and the example content is shown as 'PG-13'.

https://alwinesch.github.io/group__python__xbmcgui__listitem.html#ga0f1e91e1d5aa61d8dd0eac90e8edbf18

With my Topfield 'tmsclient' addon, I pass the rating text, not the value, into Kodi.

DeltaMikeCharlie

I need to do some more research, but it looks like TVH does not store the parental rating with the recordings.