2013-02-07, 04:04
Hi guys,
my skin supports only the USA ratings at the moment and I'm willing to change that but I can't (and don't want to ) do it all by myself. Currently the common technique for displaying the MPAA ratings is with (sub)string comparisons but I want to go another way which reduces code and helps you to create ratings for your language.
This is how the code looks like... it slightly increases the amount of images but I don't have to mess around with substrings.
Main problem is that there is no exact naming convention for the ratings so I think we should stick to the ratings from the tmdb, imdb (universal scraper) and tvdb scraper (for tv shows) for now. For movies we should also require the default rating prefix which is "Rated ". I don't like this "hardcoded" prefix very much (you can use a custom one with the new universal scraper) but that's how it is. Therefore USA ratings are named "Rated PG.png", "Rated PG-13.png" etc. ... there are also some special cases like "Rated Approved" (= Rated PG) or different naming like "Rated Not Rated", "Rated Unrated" etc.
You can create the rating images with these templates, I've also updated the skin on github. The rating flags are located in media/flags/mpaa/.
Photoshop templates
You can also report missing images here. I've likely already forgotten some for the USA ratings.
All help is much appreciated, thanks.
my skin supports only the USA ratings at the moment and I'm willing to change that but I can't (and don't want to ) do it all by myself. Currently the common technique for displaying the MPAA ratings is with (sub)string comparisons but I want to go another way which reduces code and helps you to create ratings for your language.
This is how the code looks like... it slightly increases the amount of images but I don't have to mess around with substrings.
PHP Code:
<texture>$INFO[ListItem.MPAA,flags/mpaa/movie/,.png]</texture>
Main problem is that there is no exact naming convention for the ratings so I think we should stick to the ratings from the tmdb, imdb (universal scraper) and tvdb scraper (for tv shows) for now. For movies we should also require the default rating prefix which is "Rated ". I don't like this "hardcoded" prefix very much (you can use a custom one with the new universal scraper) but that's how it is. Therefore USA ratings are named "Rated PG.png", "Rated PG-13.png" etc. ... there are also some special cases like "Rated Approved" (= Rated PG) or different naming like "Rated Not Rated", "Rated Unrated" etc.
You can create the rating images with these templates, I've also updated the skin on github. The rating flags are located in media/flags/mpaa/.
Photoshop templates
You can also report missing images here. I've likely already forgotten some for the USA ratings.
All help is much appreciated, thanks.