Kodi Community Forum

Full Version: Parental rating
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

where can I find information about the parental rating system in XBMC?

In struct PVR_PROGINFO I find it is an integer variable (int parental_rating)?
isn't documented afaik. you can find the values in the implementation of CEpgInfoTag::ConvertGenreIdToString()
I've found this:

Parental Management Information Unit Table.
Level 1 (US: G), ..., 7 (US: NC-17), 8

in xbmc/cores/dvdplayer/DVDInputStreams/dvdnav/ifo_types.h.

Does this mean that XBMC follows this: http://en.wikipedia.org/wiki/Motion_Pict...ing_system?
oh right, I mixed up parental rating with genre type.
yes, you are correct.
But then the levels are 5:

G- General Audiences
PG- Parental Guidance Suggested
PG-13- Parents Strongly Cautioned
R- Restricted
NC-17- No One 17 and under admitted

and I've found values from 1 to 8 in the code (Level 1 (US: G), ..., 7 (US: NC-17), 8) Huh
never done anything with that myself, so you'll have to look into the code for the exact usage.
If i need to guess i would think its just the age in years ? At least thats provided/has been added to VDR for VNSI EPG.

This is US only:
G- General Audiences
PG- Parental Guidance Suggested
PG-13- Parents Strongly Cautioned
R- Restricted
NC-17- No One 17 and under admitted
In cores/dvdplayer/DVDInputStreams/dvdnav/dvd_types.h:
typedef enum {
DVD_PARENTAL_LEVEL_1 = 1,
DVD_PARENTAL_LEVEL_2 = 2,
DVD_PARENTAL_LEVEL_3 = 3,
DVD_PARENTAL_LEVEL_4 = 4,
DVD_PARENTAL_LEVEL_5 = 5,
DVD_PARENTAL_LEVEL_6 = 6,
DVD_PARENTAL_LEVEL_7 = 7,
DVD_PARENTAL_LEVEL_8 = 8,
DVD_PARENTAL_LEVEL_None = 15
} DVDParentalLevel_t;

Do you mean ages from 1 to 8 years? And then 15 Huh
It makes no sense for me, but maybe you are rigth.
I'm not sure if the parental rating in PVR is the one from dvdplayer (i'm pretty much a noob regarding xbmc, coming from vdr user camp and followed development from there) - AFAICS the parental rating in VDR which is put to XBMC by VNSI is just the age.
steffen_b Wrote:I'm not sure if the parental rating in PVR is the one from dvdplayer
Neither me, it's the only code related with parental rating I've found by now.
Thanks.