How to use country specific certifications?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Martijn Offline
Team-XBMC
Posts: 7,787
Joined: Jul 2011
Reputation: 116
Location: Dawn of time
Lightbulb  How to use country specific certifications? Post: #1
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 

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2012-05-29 21:10 by Martijn.)
find quote
Big_Noid Offline
Skilled Skinner
Posts: 2,627
Joined: Jul 2010
Reputation: 68
Location: Below sea level
Post: #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.
(This post was last modified: 2012-05-29 21:03 by Big_Noid.)
find quote
olympia Offline
Team-XBMC Member
Posts: 2,398
Joined: May 2008
Reputation: 31
Post: #3
I am for
<country code>:rating
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,976
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #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

[Image: sig_zps3af3b48e.jpg]
(This post was last modified: 2012-05-29 21:28 by Hitcher.)
find quote
ronie Offline
Team-XBMC Member
Posts: 8,346
Joined: Jan 2009
Reputation: 111
Post: #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.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or 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.
find quote
Martijn Offline
Team-XBMC
Posts: 7,787
Joined: Jul 2011
Reputation: 116
Location: Dawn of time
Post: #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 
?

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2012-05-29 21:40 by Martijn.)
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,976
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #7
Don't see that being a problem.

[Image: sig_zps3af3b48e.jpg]
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,570
Joined: Oct 2003
Reputation: 138
Post: #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: badge.gif]
find quote
Martijn Offline
Team-XBMC
Posts: 7,787
Joined: Jul 2011
Reputation: 116
Location: Dawn of time
Post: #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.

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,570
Joined: Oct 2003
Reputation: 138
Post: #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: badge.gif]
find quote
Post Reply