2012-02-23, 19:22
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?
14:30:31 T:3760 NOTICE: -->Python Interpreter Initialized<--
14:30:32 T:3760 NOTICE: Service: 4804 actors took 0.35500001907348633
14:30:55 T:7324 ERROR: Control 1 in window 10099 has been asked to focus, but it can't
14:31:09 T:6440 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
14:31:11 T:7332 NOTICE: -->Python Interpreter Initialized<--
14:31:11 T:7332 NOTICE: IMDB Rating Script: Database type is set to SQLite
14:31:11 T:7332 ERROR: Error Type: <type 'exceptions.ImportError'>
14:31:11 T:7332 ERROR: Error Contents: No module named _mysql
14:31:11 T:7332 ERROR: Traceback (most recent call last):
File "C:\XBMC\portable_data\addons\script.imdbratings\default.py", line 61, in <module>
import MySQLdb as mdb
File "C:\XBMC\portable_data\addons\script.imdbratings\resources/lib\MySQLdb\__init__.py", line 19, in <module>
import _mysql
ImportError: No module named _mysql
(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.
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.
23:12:26 T:139800489211648 INFO: -->Python script returned the following error<--
23:12:26 T:139800489211648 ERROR: Error Type: <type 'exceptions.ImportError'>
23:12:26 T:139800489211648 ERROR: Error Contents: /home/zosky/.xbmc/addons/script.imdbratings/resources/lib/_mysql.so: wrong ELF class: ELFCLASS32
23:12:26 T:139800489211648 ERROR: Traceback (most recent call last):
File "/home/zosky/.xbmc/addons/script.imdbratings/default.py", line 61, in <module>
import MySQLdb as mdb
File "/home/zosky/.xbmc/addons/script.imdbratings/resources/lib/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: /home/zosky/.xbmc/addons/script.imdbratings/resources/lib/_mysql.so: wrong ELF class: ELFCLASS32
23:12:26 T:139800489211648 INFO: -->End of Python script error report<--
23:12:26 T:139800489211648 INFO: Python script stopped
(2012-07-06, 00:26)dvbtjunkie Wrote: 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...
17:33:42 T:2595224384 NOTICE: -->Python Interpreter Initialized<--
17:33:42 T:2595224384 DEBUG: Process - The source file to load is /home/payam/.xbmc/addons/script.imdbratings/default.py
17:33:42 T:2595224384 DEBUG: Process - Setting the Python path to /home/payam/.xbmc/addons/script.imdbratings:/home/payam/.xbmc/addons/script.module.xbmcswift/lib:/home/payam/.xbmc/addons/script.module.simplejson/lib:/home/payam/.xbmc/addons/script.module.myconnpy/lib:/home/payam/.xbmc/addons/script.module.beautifulsoup/lib:/usr/share/xbmc/addons/script.module.pil/lib:/home/payam/.xbmc/addons/script.common.plugin.cache/lib:/home/payam/.xbmc/addons/script.module.simple.downloader/lib:/home/payam/.xbmc/addons/script.module.parsedom/lib:/home/payam/.xbmc/addons/script.module.elementtree/lib:/usr/share/xbmc/addons/script.module.pysqlite/lib:/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/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PIL:/usr/lib/python2.7/dist-packages/gst-0.10:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/pymodules/python2.7:/usr/lib/python2.7/dist-packages/ubuntu-sso-client:/usr/lib/python2.7/dist-packages/ubuntuone-client:/usr/lib/python2.7/dist-packages/ubuntuone-control-panel:/usr/lib/python2.7/dist-packages/ubuntuone-couch:/usr/lib/python2.7/dist-packages/ubuntuone-installer:/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol:/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode:
17:33:42 T:2595224384 DEBUG: Process - Entering source directory /home/payam/.xbmc/addons/script.imdbratings
17:33:42 T:2595224384 DEBUG: Instantiating addon using automatically obtained id of "script.imdbratings" dependent on version 1.0 of the xbmc.python api
17:33:42 T:2595224384 NOTICE: IMDB Rating Script: Database type is set to MySQL
17:33:42 T:2595224384 NOTICE: IMDB Rating Script: MySQL Server Address is 192.168.1.14
17:33:42 T:2595224384 INFO: Loading skin file: DialogYesNo.xml
17:33:42 T:3015259904 DEBUG: ------ Window Init (DialogYesNo.xml) ------
17:33:42 T:3015259904 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
17:33:45 T:2682678080 DEBUG: JSONRPC Server: New connection detected
17:33:45 T:2682678080 INFO: JSONRPC Server: New connection added
17:33:53 T:3015259904 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
17:33:53 T:3015259904 DEBUG: SDLKeyboard: scancode: 71, sym: 0114, unicode: 0000, modifier: 1000
17:33:53 T:3015259904 DEBUG: OnKey: left (f082) pressed, action is Left
17:33:54 T:3015259904 DEBUG: SDLKeyboard: scancode: 24, sym: 000d, unicode: 000d, modifier: 1000
17:33:54 T:3015259904 DEBUG: OnKey: return (f00d) pressed, action is Select
17:33:54 T:3015259904 DEBUG: ------ Window Deinit (DialogYesNo.xml) ------
17:33:54 T:2595224384 INFO: -->Python script returned the following error<--
17:33:54 T:2595224384 ERROR: Error Type: <type 'exceptions.ImportError'>
17:33:54 T:2595224384 ERROR: Error Contents: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
17:33:54 T:2595224384 ERROR: Traceback (most recent call last):
File "/home/payam/.xbmc/addons/script.imdbratings/default.py", line 61, in <module>
import MySQLdb as mdb
File "/home/payam/.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
17:33:54 T:2595224384 INFO: -->End of Python script error report<--
17:33:54 T:2595224384 INFO: Python script stopped