Kodi Community Forum

Full Version: How to use country specific certifications?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm making a "Library info update" that will sync your local library with online sources.

I want to know if there is any standard on how the certificates should be named for multiple countries.

So far i found several different notations:
PHP Code:
Rated PG-13
US
:PG-13
TV
-PG
UK
:PG
NL
:16
Germany
:FSK 16
France
:-16 


Aeon Nox has several different string compares:
https://github.com/BigNoid/Aeon-Nox/blob...s.xml#L197

I found this source:
http://en.wikipedia.org/wiki/Motion_pict...ing_system


I'm looking to have (or set) a standard for naming convention to put an end to this misery (if possible).
To make all our lives easier.

Suggestion?
What should it be?
PHP Code:
<country code>:rating
<country name>:rating
<country code>:Full blown textual description
<country name>:Full blown textual description 

Edit:

Getting rid of the colon would also make it a lot easier for filenaming (illegal characters on some OS).
Example:
PHP Code:
<country coderating 
It would be great to get rid of the stringcompares and just load pictures, but i must say that the rating also has detailed text of why it has been rated R for example. In Nox we only use it in one place, but I can imagine other skins only use the full text instead of pictures.
I am for
<country code>:rating
Where are the ratings being scraped from?
They need to be in a format whereby we can simply use them to point to a folder containing all the different types without having to use visible conditions.

eg <texture>$INFO[ListItem.Certificate,certificates,.png]<texture>

I think you're opening yourself up to a world of hurt but good luck. Wink
i agree with Big_Noid & Hitcher, if we want to do this right, the rating country/value must match the image name.
it's not sane to have several hundreds of variables in the skin just to match the correct rating image.
(2012-05-29, 21:03)olympia Wrote: [ -> ]I am for
<country code>:rating

(2012-05-29, 21:23)Hitcher Wrote: [ -> ]Where are the ratings being scraped from?
They need to be in a format whereby we can simply use them to point to a folder containing all the different types without having to use visible conditions.

eg <texture>$INFO[ListItem.Certificate,certificates,.png]<texture>

I think you're opening yourself up to a world of hurt but good luck. Wink

(2012-05-29, 21:27)ronie Wrote: [ -> ]i agree with Big_Noid & Hitcher, if we want to do this right, the rating country/value must match the image name.
it's not sane to have several hundreds of variables in the skin just to match the correct rating image.

All in favor of (they are somewhat listed like this on TMDB):

PHP Code:
ISO639-1_rating 
so like this
PHP Code:
US_PG-13
NL_16
GE_12
FR_16 
?
Don't see that being a problem.
I'd prefer slash I think:

iso639-1/rating, i.e. uk/ma16 or whatever.

That way you can easily have your images in nicely separated folders?

Ofcourse, these would be the ideal candidates for art packs.

Cheers,
Jonathan
(2012-05-30, 00:08)jmarshall Wrote: [ -> ]I'd prefer slash I think:

iso639-1/rating, i.e. uk/ma16 or whatever.

That way you can easily have your images in nicely separated folders?

Ofcourse, these would be the ideal candidates for art packs.

Cheers,
Jonathan

Won't cause any problems on different OS?

Whatever is easiest for skinners and still looks good in skins that display the plain text.

Also there are only like 6 images per country so having them all in one folder isn't that awfull.

Still hoping for those artworkpacks. Even if only basic implementation is added for Frodo.
No - XBMC uses sane slashes internally for stuff like this (special://foo/ URL).
(2012-05-31, 06:24)jmarshall Wrote: [ -> ]No - XBMC uses sane slashes internally for stuff like this (special://foo/ URL).

OK so
PHP Code:
ISO639-1/XX 
it is then.

Example
PHP Code:
US/PG-13 


so folder structure should look something like:
PHP Code:
ratingflags/
     
US/
          
PG-13.png
          R
.png
     NL
/
          
16.png
          12.png
     DE
/
          
FSK 16.png 
Looks good to me.