How to use country specific certifications?
#1
Lightbulb 
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 
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#2
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.
Reply
#3
I am for
<country code>:rating
Reply
#4
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
Reply
#5
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.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#6
(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 
?
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#7
Don't see that being a problem.
Reply
#8
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
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#9
(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.
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#10
No - XBMC uses sane slashes internally for stuff like this (special://foo/ URL).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#11
(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 
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#12
Looks good to me.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
How to use country specific certifications?0