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
J_K_M_A_N
Fan Posts: 443 Joined: Feb 2006 Reputation: 1 Location: Minnesota |
2007-09-02 15:29
Post: #31
|
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,917 Joined: Dec 2004 Reputation: 17 |
2007-09-02 16:13
Post: #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. |
| find quote |
J_K_M_A_N
Fan Posts: 443 Joined: Feb 2006 Reputation: 1 Location: Minnesota |
2007-09-06 16:46
Post: #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. ![]() 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. |
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,917 Joined: Dec 2004 Reputation: 17 |
2007-09-06 20:54
Post: #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:
(This post was last modified: 2007-09-06 21:23 by Nuka1195.)
|
| find quote |
J_K_M_A_N
Fan Posts: 443 Joined: Feb 2006 Reputation: 1 Location: Minnesota |
2007-09-06 21:26
Post: #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 |
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,917 Joined: Dec 2004 Reputation: 17 |
2007-09-06 21:34
Post: #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. |
| find quote |
ekim232
Posting Freak Posts: 1,204 Joined: Nov 2008 Reputation: 5 Location: Chicago, IL |
2009-02-27 06:25
Post: #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. |
| find quote |


Search
Help