Posts: 1,252
Joined: Dec 2008
Reputation:
4
What is required for the skin to pull MPAA ratings and display a corresponding image?
Posts: 1,234
Joined: Nov 2008
Reputation:
5
listitem.mpaa
Then just do a substring visible for each rating.
<texture>r.png</texture>
<visible>substring(listitem.mpaa,Rated R)</visible>
<visible>substring(listitem.mpaa,Rated PG) + !substring(listitem.mpaa,Rated PG-13)</visible>
Posts: 1,252
Joined: Dec 2008
Reputation:
4
And where is this scraped from? TMDB? for some reason i can't get the flags to show
Posts: 1,252
Joined: Dec 2008
Reputation:
4
I got them to show up if I change it from listitem.mpaa to listitem.filename, but that's obviously only a temp fix ...
Posts: 1,234
Joined: Nov 2008
Reputation:
5
For tv shows it is stored in the mpaa ratings field and can be pulled from TVDB. You need to have a very recent rev. for the tv series to work. I have tv ratings on about 90% of my 50 shows.
Movies, I scrape from IMDB. I have a rating on all my movies after going through using a media manager program and making sure they were all in there. The inital scrape got about 95% of them.
Posts: 1,252
Joined: Dec 2008
Reputation:
4
So TMDB doesnt give that info?
Posts: 3,660
Joined: Feb 2008
Reputation:
93
Jeroen
Team-Kodi Member
Posts: 3,660
Unfortunately no, they only work with the imdb scraper.
Posts: 1,252
Joined: Dec 2008
Reputation:
4
That's really unfortunate then as i use the default scraper TMDB. As do most people i thought.
As i said above I have them set to read from the actual file, but for those who use IMDB scraper is possible to read both from the file AND the IMDB info scraped?
Posts: 3,660
Joined: Feb 2008
Reputation:
93
Jeroen
Team-Kodi Member
Posts: 3,660
sure. you could just use a visibility condition to accept either one.
<visible>substring(listitem.filename,Rated whatever) | substring(listitem.MPAA,Rated whatever)</visible>
Posts: 1,252
Joined: Dec 2008
Reputation:
4
OK and I assume this would apply to other flags as well?
Posts: 1,252
Joined: Dec 2008
Reputation:
4
OK excellent news man thank you for the helpful info.