[RELEASE] IMDB Ratings for Movies - 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 Ratings for Movies (/showthread.php?tid=92132) |
- frumpsnake - 2012-02-23 I hate to ask a stupid question but isn't it easier to just enable 'Get Movie Rating from IMDb' in the standard MovieDB scraper? - Eisi2005 - 2012-02-24 @cosmicr i have updated to xbmc eden beta3. I´m using openelec latest beta and i become this error in debug log: 08:37:01 T:2951740224 NOTICE: -->Python Interpreter Initialized<-- 08:37:01 T:2951740224 DEBUG: Process - The source file to load is /storage/.xbmc/addons/script.imdbratings/default.py 08:37:01 T:2951740224 DEBUG: Process - Setting the Python path to /storage/.xbmc/addons/script.imdbratings:/usr/share/xbmc/addons/script.module.simplejson/lib:/usr/share/xbmc/addons/script.module.pil/lib:/storage/.xbmc/addons/script.module.elementtree/lib:/usr/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg:/usr/lib/python2.7/site-packages/simplejson-2.1.6-py2.7-linux-i686.egg:/usr/lib/python2.7/site-packages/configobj-4.7.2-py2.7.egg:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/PIL:/usr/lib/python2.7/site-packages/gtk-2.0: 08:37:01 T:2951740224 DEBUG: Process - Entering source directory /storage/.xbmc/addons/script.imdbratings 08:37:01 T:2951740224 DEBUG: Instantiating addon using automatically obtained id of "script.imdbratings" dependent on version 1.0 of the xbmc.python api 08:37:03 T:2951740224 NOTICE: IMDB Rating Script: Database type is set to SQLite 08:37:03 T:2951740224 INFO: -->Python script returned the following error<-- 08:37:03 T:2951740224 ERROR: Error Type: <type 'exceptions.ImportError'> 08:37:03 T:2951740224 ERROR: Error Contents: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory 08:37:03 T:2951740224 ERROR: Traceback (most recent call last): File "/storage/.xbmc/addons/script.imdbratings/default.py", line 61, in <module> import MySQLdb as mdb File "/storage/.xbmc/addons/script.imdbratings/resources/lib/MySQLdb/__init__.py", line 19, in <module> import _mysql ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory 08:37:03 T:2951740224 INFO: -->End of Python script error report<-- @frumpsnake this addon renew the ratings from movies which are in your libary. The Get Movie from function is for first scan only. But the ratings change from day to day. Greets Eisi - Eisi2005 - 2012-02-28 @cosmicr could you take a look at my log files ? Post before this is from a linux os with xbmc b3 and this logfile is from win7 with xbmc b3. Something is wrong with getting the database. 22:21:31 T:7132 INFO: -->Python script returned the following error<-- 22:21:31 T:7132 ERROR: Error Type: <type 'exceptions.ValueError'> 22:21:31 T:7132 ERROR: Error Contents: invalid literal for int() with base 10: 'SQLite' 22:21:31 T:7132 ERROR: Traceback (most recent call last): File "C:\Users\AdminEisi2005\AppData\Roaming\XBMC\addons\script.imdbratings\default.py", line 46, in <module> MySQL = int(Addon.getSetting("database")) ValueError: invalid literal for int() with base 10: 'SQLite' 22:21:31 T:7132 INFO: -->End of Python script error report<-- 22:21:31 T:7132 INFO: Python script stopped Greets Eisi - cosmicr - 2012-03-02 Hi Eisi2005, I'm not 100% sure but it appears I may have made a mistake in getting settings from the config file. I'm assuming others may have had this problem too, I'll look into it and try to get an update posted in the next day or so. I didn't do a lot of testing on other systems, all I know is it worked on my machine I've got a few machines so I'll test it a bit more thoroughly... @frumpsnake: Two reasons, when I started this addon the inbuilt scraper only got the rating from themoviedb, but now this addon is useful to update an already existing library. - Eisi2005 - 2012-03-02 @cosmicr thx for working on it. If you need someone to test, gibe me the files to change and i will test it for you. I have one win7 64 bit with b3 and one linux (openelec) with b3. Greets Eisi - Eisi2005 - 2012-03-08 @cosmicr i don´t wont to nerv you, but is there anything i could do to test myself in your settings. something that i put the directory to my database manuel ? Greets Eisi RE: [RELEASE] IMDB Ratings for Movies - Eisi2005 - 2012-03-21 @cosmicr did you found any time to look in your script ? Greets Eisi RE: [RELEASE] IMDB Ratings for Movies - tinybutstrong - 2012-04-28 Yeah, I get a similar error: Code: 14:30:31 T:3760 NOTICE: -->Python Interpreter Initialized<-- I'm not using MySQL. RE: [RELEASE] IMDB Ratings for Movies - cosmicr - 2012-04-28 hi all, sorry I disappeared off the face of the earth, but I have been very busy with other things. I don't have time to fix the problem, but it looks like I got too hasty in testing mysql and stuffed up the check between sqlite and mysql at the start (so it's always trying mysql even if you have sqlite). If someone wants to fix it, check the source on my git page, it shouldn't take too much to fix. RE: [RELEASE] IMDB Ratings for Movies - dvbtjunkie - 2012-07-06 Hey nice Script, probably i found a Bug. I don't know why, but some movies in my database have a wrong IMDBID. for example: Armored have a numeric ID 0913354 but need that ID tt0913354 The Script fails to open the wrong IMDB Site : http://www.imdb.com/title/0913354/ It is possible to add in your Code a ID Check like that: If 'tt' in num: Try Base_URL + num else: Base_URL + "tt" + num Sorry I'm a python newbie my language is VBScript.. Thanks This is not my Solution to solve my IMDBID Problem in my database but it makes the script run. or It's a remote possibility to help me to change all wrong IMDBID in my Database... RE: [RELEASE] IMDB Ratings for Movies - zosky - 2012-07-06 (2012-04-28, 23:54)cosmicr Wrote: hi all, sorry I disappeared off the face of the earth, but I have been very busy with other things. Respect !! life happens. thanks for telling us. for the record, i am using mySQL and it seems borked too is it telling me to levelUP my elves ? Code: 23:12:26 T:139800489211648 INFO: -->Python script returned the following error<-- RE: [RELEASE] IMDB Ratings for Movies - dvbtjunkie - 2012-07-06 (2012-07-06, 00:26)dvbtjunkie Wrote: Hey nice Script, Database problem solved: Edit with SQLLiteExplorer : http://wiki.xbmc.org/index.php?title=HOW-TO:Use_your_computer_to_edit_XBMC_(SQL)_database-files Statement: UPDATE movie SET c09 = "tt" || c09 WHERE c09 not like 'tt%'; RE: [RELEASE] IMDB Ratings for Movies - papampi - 2012-07-20 I get error and script failed !!! debug : Code: 17:33:42 T:2595224384 NOTICE: -->Python Interpreter Initialized<-- any idea how to slove this error ? RE: [RELEASE] IMDB Ratings for Movies - dvbtjunkie - 2013-02-26 @ cosmicr i love your script, it is possible to get a upgrade to Frodo? After Upgrade my XBMC to Frodo, it is impossible to install Thx a lot RE: [RELEASE] IMDB Ratings for Movies - hop6919 - 2013-04-10 I've written a small .net app that refreshes the IMDB score in XBMC by scraping the IMDB site directly. It works with Frodo and either the local SQLite database or the shared MySQL library. Here's the link: https://bitbucket.org/sstanford/imdb-score-refresher-for-xbmc/overview It's only for the films I'm afraid. It also doesnt update the .nfo files - but these can be updated by exporting the video library in XBMC and overwriting in the normal way. |