How to show a movie rating in VideoFullScreen.xml
#31
Actually, looking at the source, it would be very easy to scrape that certification. For the usa version all you need to look for is ">USA:" and scrape until the first "<" because they make it linkable. That way you would have the rating only for what looks to be any movie. Even the ones before 1990 or so.

J_K_M_A_N
Reply
#32
Rush hour 3 was banned in china.

I think a separate infolabel would be enough and less hassel. If the format is always "Rated RATING ...", but it is up to spiff if he wants to add another database entry.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#33
Is Spiff on vacation?!? I figured he would at least come in and say he doesn't care about it and he would welcome a patch. Let me try this...

Spiff, could you add this as I am sure it would be VERY easy to do. Big Grin

J_K_M_A_N

I am of course kidding about the whole thing. Although I do miss spiff ripping on some people (Including myself). The board seems so boring without him.
Reply
#34
http://pastebin.ca/684390

There's a patch that adds "ListItem.MPAARating" and "VideoPlayer.MPAARating".

It does not change the database, which I don't think is necessary, unless it would speed up XBMC when those infolabels are used. I also did not at it to python.

And a bug. "VideoPlayer.Studio" is returning the plot. I haven't looked at that yet, but I don't think it's anything i did.

Found it
Code:
[SIZE=2][color=#0000ff]case[/color][/SIZE][SIZE=2] VIDEOPLAYER_STUDIO:
[/SIZE][SIZE=2][color=#0000ff]return[/color][/SIZE][SIZE=2] m_currentFile.GetVideoInfoTag()->m_strPlot;[/SIZE]
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#35
I think the problem with that is that many movies (like before 1990 or so) don't have an MPAA rating so I think it would need to be taken from the Certification listing on IMDB. That has a listing of the different ratings for different countries. So person would have to set it for whichever country they wanted.

Personally, I think another database entry should be made (if it is done at all) for just the rating. That way you could scrape IMDB for that certification to get just the rating for the country you want.

Just a thought.

J_K_M_A_N
Reply
#36
Yeah, now that i think about it. It should be done by the scraper. Since they may be dependent on which one you use.

The experts will have to do that then.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#37
I have been looking to add mpaa rating images as well. I noticed that AMT will show the rating in the lower corner. Is there a way to pull code from that and put it to skin files in order to show the mpaa rating?

Just a thought. I haven't had time to look into it closely.
Reply

Logout Mark Read Team Forum Stats Members Help
How to show a movie rating in VideoFullScreen.xml1