Kodi Community Forum
[Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* (/showthread.php?tid=167754)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - sualfred - 2015-04-12

That was fast. Works Tongue

But mate:
PHP Code:
elif typ == "mpaa":
            
Mpaa().start(hidden

You know what I mean Tongue And also the all command Smile


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - Jandalf - 2015-04-12

(2015-04-12, 20:04)sualfred Wrote: That was fast. Works Tongue

But mate:
PHP Code:
elif typ == "mpaa":
            
Mpaa().start(hidden

You know what I mean Tongue And also the all command Smile

you get it Wink
script.imdbupdate-0.7.2.zip


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - sualfred - 2015-04-12

Wrong link, but thanks ^^ Works. Pushed it right to my repo,


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - semool - 2015-04-13

With the actual Version i get an error on my firetv but i dont see the error in code?!:
Code:
SyntaxError: ('invalid syntax', ('/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.imdbupdate/resources/lib/top250.py', 47, 142, '        top250 = {tt["href"][7:16].encode(\'utf-8\'): {"position": idx, "label": tt.contents[0], "link": "http://www.imdb.com" + tt["href"]} for idx, tt in enumerate(soup, start=1)}\n'))



RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - Jandalf - 2015-04-13

(2015-04-13, 18:16)semool Wrote: With the actual Version i get an error on my firetv but i dont see the error in code?!:
Code:
SyntaxError: ('invalid syntax', ('/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.imdbupdate/resources/lib/top250.py', 47, 142, '        top250 = {tt["href"][7:16].encode(\'utf-8\'): {"position": idx, "label": tt.contents[0], "link": "http://www.imdb.com" + tt["href"]} for idx, tt in enumerate(soup, start=1)}\n'))

could you provide more lines from the log?


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - semool - 2015-04-13

Sure, this is the complete error:
Code:
18:24:02 T:1705947512  NOTICE: -->Python Interpreter Initialized<--
18:24:02 T:1705947512   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.SyntaxError'>
                                            Error Contents: ('invalid syntax', ('/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.imdbupdate/resources/lib/top250.py', 47, 51, '        top250 = [tt["href"][7:16].encode(\'utf-8\'): {"position": idx, "label": tt.contents[0], "link": "http://www.imdb.com" + tt["href"]} for idx, tt in enumerate(soup, start=1)]\n'))
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.imdbupdate/default.py", line 6, in <module>
                                                from resources.lib.top250 import Top250
                                            SyntaxError: ('invalid syntax', ('/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.imdbupdate/resources/lib/top250.py', 47, 51, '        top250 = [tt["href"][7:16].encode(\'utf-8\'): {"position": idx, "label": tt.contents[0], "link": "http://www.imdb.com" + tt["href"]} for idx, tt in enumerate(soup, start=1)]\n'))
                                            -->End of Python script error report<--



RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - semool - 2015-04-13

I split the line a little bit and now its working again:
Code:
top250 = {}
for idx, tt in enumerate(soup, start=1):
    top250[tt["href"][7:16].encode('utf-8')] = {"position": idx, "label": tt.contents[0], "link": "http://www.imdb.com" + tt["href"]}

i dont know why its not working in one line on the aftv?!


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - Jandalf - 2015-04-14

(2015-04-13, 21:03)semool Wrote: I split the line a little bit and now its working again:
Code:
top250 = {}
for idx, tt in enumerate(soup, start=1):
    top250[tt["href"][7:16].encode('utf-8')] = {"position": idx, "label": tt.contents[0], "link": "http://www.imdb.com" + tt["href"]}

i dont know why its not working in one line on the aftv?!

I don't know either, but fixed this in a new version:
script.imdbupdate-0.7.3.zip


[Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - Tight_wad - 2015-04-15

Thanks for your hard work on this add-on. Works great.


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - cgi2011 - 2015-04-16

Thanks for the hard work, this add-on is truly great.

It didn't work for a few months on my android kodi 14.x (Minix NEO X8 Plus), but since update to 0.7.3 everything is fine again Smile . I'm looking forward for tv-shows update, i understand that this is quite tricky!

Many thanks again!


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - blacksn0w - 2015-04-19

(2015-04-07, 19:18)semool Wrote: Im new @kodi and spend some time to scrap my Movies, change Covers, cdarts .... with the integrated moviedb scraper.
After all that work i realized that no Age Rating was inserted into my MySQL Database Sad Now i know its a bug when scraping ratings from moviedb and not imdb.

OK scrap all data new and all covers or insert age rating manually Huh

Then i read your code, extended it a little bit and now i can scrap all the Age Ratings with one Click Big Grin
At the Moment he scrap only the German FSK Ratings from https://altersfreigaben.de/api_desc.html and insert it to Database like the integrated Kodi Scraper "Rated XX"
With a little bit more time i can add also usa and other mpaa ratings, a Config Option for Format in Database like "germany:xx", better code and so on if you like my work at your addon.

Here is the diff code to your actual Git Version: http://pastebin.com/JT7Bq59t

Edit: I have added two new Options:
MPAA Language: DE or US - DE comes from altersfreigabe.de, US comes also from omdb
MPAA Format: Rated|USA:|FSK|Germany: - Format as it save to Database (germany: 6, FSK 6, Rated R and so on)
Also the Database will only be updated if the new and old variable are different.

It's nice to see that there are some guys out there, using my database! Big Grin
I asked myself the last two weeks, where the hell are this 2-4k new API from.

And after searching for quite a while, here is the answer.
If you have any suggestions for improvements, give it to me!
I'm currently working on a more "international" version of my site, including at first the MPAA Rating and then other local rankings, but it will take a month or two to implement the system and then to fill it with data.


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - Jandalf - 2015-04-20

(2015-04-19, 18:44)blacksn0w Wrote: It's nice to see that there are some guys out there, using my database! Big Grin
I asked myself the last two weeks, where the hell are this 2-4k new API from.

And after searching for quite a while, here is the answer.
If you have any suggestions for improvements, give it to me!
I'm currently working on a more "international" version of my site, including at first the MPAA Rating and then other local rankings, but it will take a month or two to implement the system and then to fill it with data.

Hey, nice work, keep on going, one single API for multiple countries would be very nice. Just say when its ready. To reduce the http overhead, batch requests would be great.


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - semool - 2015-04-20

(2015-04-19, 18:44)blacksn0w Wrote: It's nice to see that there are some guys out there, using my database! Big Grin
I asked myself the last two weeks, where the hell are this 2-4k new API from.

And after searching for quite a while, here is the answer.
If you have any suggestions for improvements, give it to me!
I'm currently working on a more "international" version of my site, including at first the MPAA Rating and then other local rankings, but it will take a month or two to implement the system and then to fill it with data.

Hi blacksn0w Smile
Yeah i searched an API for german FSK Ratings and i found yours here: http://board.jmoviemanager.de/wbb/index.php?page=Thread&postID=455#post455
Great work, very user friendly Blush
An Improvement was when you eventually could add TV Shows (Serien). I mean not for every single Episode but for the TV Show itself.
At the Moment i have search fsk.de for the TV Show (manually over the Browser). They list every rated Episode. for example E1 - FSK 16, E2 - FSK 18 and so on. The highest Rating i then entered for the TV Show. Problem is that Kodi have no imdb id for TV Shows in Database and we must search with TV Show Name Confused


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - sualfred - 2015-04-21

@Jandalf:
As you know, I implemented your script directly in my skin and the script can be run automatically each time the database has been updated with the "all" argument.

So...some users a are fighting with it, so here's my wishlist:
- Change the default MPAA ratings to US
- Option to disable single features, so they will be skipped even when the script is started with the all command
- Yes/No dialog on the first run, which opens the addon settings to configure DE/US for example


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Helix* - Boulder - 2015-04-25

I just installed the addon and tested updating the Top 250 list. It seems that it gets stuck at the last item in my library with status "Searching for Zombieland" at 99% progress. Top in SSH shows 10-15% CPU usage for kodi.bin.

I'm running OpenELEC v5.0.8 with the latest Kodi Helix.

EDIT: The automatic updating upon startup is working. Here's what the debug log says when I try to update Top 250 manually: http://pastebin.com/FWwLZazn