Australian ratings
#1
Lightbulb 
firstly, nice skin ronie!

Apols if this has been covered, I did a quick search and couldn't find anything.
Today I created some Australian ratings icons based on what is already included (linked below) and edited what I think are the appropriate parts in 720p/Includes_Variables.xml to use them. (see code below)
note: I did this for my own setup and my graphics skills are limited Smile

Code:
<value condition="StringCompare(ListItem.Mpaa,Australia:G">flags/movies/rating/au_ratedg.png</value>
<value condition="StringCompare(ListItem.Mpaa,Australia:PG">flags/movies/rating/au_ratedpg.png</value>
<value condition="StringCompare(ListItem.Mpaa,Australia:M">flags/movies/rating/au_ratedm.png</value>
<value condition="substring(ListItem.Mpaa,Australia:MA">flags/movies/rating/au_ratedma.png</value>
<value condition="StringCompare(ListItem.Mpaa,Australia:R">flags/movies/rating/au_ratedr.png</value>
<value condition="StringCompare(ListItem.Mpaa,Australia:X">flags/movies/rating/au_ratedx.png</value>

I'm not completely clear on the accepted format for non mpaa ratings in xbmc, but it seems to me people are using the country format scraped from IMDB, hence I have done the same. The ratings I have come across and made icons for are:
Australia:G
AustraliaTongueG
Australia:M
Australia:MA
Australia:MA15+
(alternate of above)
Australia:R
Australia:X


In addition, if anyone is interested I will post the simple shell script I used to update the mpaa ratings in the xbmc db with the Australian ones (it relies on the db already knowing the IMDB ID for the title)

icons zip download (4shared link)
Reply
#2
looks good to me, i've added it to Transparency!

thanx!
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
#3
thanks ronie.

I just pulled the latest svn and it looks like the Australian ratings sections in 720p/Includes_Variables.xml are missing the flags/movies/rating/ prefix to the icons.

Also, some records in IMDB have the MA rating as Australia:MA and some as Australia:MA15+ Is it possible to have both included ?
Reply
#4
cheers for looking into it :-)
i've fixed it right away.
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
#5
quick work! thanks, I've been wanting this for a while now Smile

One remaining issue, there seems to be a problem matching Australia:MA15+
When I was testing this myself and came across this I assumed it was due to the + needing to be escaped for StringCompare (or something like that) which is why I used the substring match instead.
Reply
#6
ok, changed it to that one as well :-)
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
#7
Ok I'm loving the skin but found a small bug and have tried to fix this myself without success. When playing a movie or TV show the rating is always NR, the ratings show up correctly in the normal list and info views but not while playing. I copied the Australian ratings from the variable includesmediaflagsvideorating to the variable includesmediaflagsvideofullscreenrating but it did nothing. I don't know if i have the right variable so any help would be appreciated.
Image Image
Reply
#8
cheers!

looks like i forgot to add them to the video osd.
will fix that right away.
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

Logout Mark Read Team Forum Stats Members Help
Australian ratings0