Posts: 496
Joined: Dec 2009
Reputation:
0
2013-03-09, 15:18
(This post was last modified: 2013-03-09, 15:57 by mobious.)
Thank you for this! I have been wanting something like this for quite some time now but I never bothered searching until today! +rep
One question though, is there a reason this isn't on the official add-on section in XBMC?
Edit: Also I just happened to realise that this is for IMDB only, any plans to add thetvdb support for episodes in the future?
Posts: 51
Joined: Oct 2010
Reputation:
0
2013-03-24, 20:48
(This post was last modified: 2013-03-24, 20:48 by SevenNine.)
In case anyone else runs into this...
XBMC on Ubuntu 12.10. php5-cgi and python installed. However, by default, seems python-mysql.connector is not installed (or was not).
To fix: sudo apt-get install python-mysql.connector
Example error output:
11:58:29 T:140370646124288 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named mysql.connector
Traceback (most recent call last):
File "/home/xbmc/.xbmc/addons/script.ratingupdate/resources/lib/gui.py", line 70, in onClick
Movies()
File "/home/xbmc/.xbmc/addons/script.ratingupdate/resources/lib/ratings_all.py", line 258, in __init__
self.Movies = self.listing()
File "/home/xbmc/.xbmc/addons/script.ratingupdate/resources/lib/ratings_all.py", line 281, in listing
match = RawXbmcDb.query( 'SELECT idMovie FROM movie' )
File "/home/xbmc/.xbmc/addons/script.ratingupdate/resources/lib/dbutils.py", line 19, in query
if RawXbmcDb_Connect is None: RawXbmcDb_Connect = findXbmcDb()
File "/home/xbmc/.xbmc/addons/script.ratingupdate/resources/lib/dbutils.py", line 73, in findXbmcDb
import mysql.connector
ImportError: No module named mysql.connector
-->End of Python script error report<--
Posts: 3
Joined: Apr 2013
Reputation:
0
Well, there's a good reason for it. OpenELEC for RPi is distributed as a precompiled image. So each update replaces the /use/bin folder where any sane person would put the php-cgi. The filesystem is also by default mounted as read only and there is no apt-get for the very same reason. So the only easy solution afaik is to place the php-cgi in the addon folder of xbmc where it won't be overwritten with the next update. Please correct me if I overlooked any cleaner solution for the given case…
Posts: 1,675
Joined: Mar 2011
Reputation:
17
This may not be the best place to ask this... But...
Is it possible for the top250 to do the following:
Get top 250 list,
Reference against my library,
Update files in my library with latest top250 ratings/info
..
..then
...
Give me a list of movies from the top 250 that I am MISSING?
The top 250 changes every so often, it would be great to run the script, update top 250 nd have it say:
249 movies were updated
1 movie was not found - inception 2012
Then I would know this movie may be worth further investigation, purchase or rent etc?
Could this be possible?
Cheers,
Pat
Posts: 1,675
Joined: Mar 2011
Reputation:
17
Hi,
Thanks for the info, but can it display this information in a popup window like "missing movie scanner" so I don't need to exit xbmc to see immediate list?