2019-11-21, 05:42
(2019-11-20, 22:22)willemd Wrote: Hi axlt2002,HI @willemd, thanks for your post.
Thanks for this add-on. It used to work great, but for some reason it now no longer functions on my machine.
I run Windows 10, Kodi 17.6 (DSplayer). Add-on version 3.5.2 (but 3.5.1 also didn't work, don't know about earlier ones). I use an MySQL database if that's relevant.
When I try to update a movie, I get an error message saying I should check the log. I have the relevant part of the log quoted below.
When I run the add-on to update all movies, I don't get an error, but even though it takes the add-on quite a while to run, none of the ratings are actually updated.
Code:21:13:41.755 T:1956 INFO: initializing python engine.
21:13:41.755 T:1956 DEBUG: CPythonInvoker(15, C:\Users\userh\AppData\Roaming\Kodi\addons\script.light.imdb.ratings.update\context.py): start processing
21:13:41.837 T:1956 DEBUG: -->Python Interpreter Initialized<--
21:13:41.837 T:1956 DEBUG: CPythonInvoker(15, C:\Users\userh\AppData\Roaming\Kodi\addons\script.light.imdb.ratings.update\context.py): the source file to load is "C:\Users\userh\AppData\Roaming\Kodi\addons\script.light.imdb.ratings.update\context.py"
21:13:41.837 T:1956 DEBUG: CPythonInvoker(15, C:\Users\userh\AppData\Roaming\Kodi\addons\script.light.imdb.ratings.update\context.py): setting the Python path to C:\Users\userh\AppData\Roaming\Kodi\addons\script.light.imdb.ratings.update;C:\Users\userh\AppData\Roaming\Kodi\addons\script.module.certifi\lib;C:\Users\userh\AppData\Roaming\Kodi\addons\script.module.chardet\lib;C:\Users\userh\AppData\Roaming\Kodi\addons\script.module.idna\lib;C:\Users\userh\AppData\Roaming\Kodi\addons\script.module.requests\lib;C:\Users\userh\AppData\Roaming\Kodi\addons\script.module.simplejson\lib;C:\Users\userh\AppData\Roaming\Kodi\addons\script.module.urllib3\lib;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages
21:13:41.837 T:1956 DEBUG: CPythonInvoker(15, C:\Users\userh\AppData\Roaming\Kodi\addons\script.light.imdb.ratings.update\context.py): entering source directory C:\Users\userh\AppData\Roaming\Kodi\addons\script.light.imdb.ratings.update
21:13:41.837 T:1956 DEBUG: CPythonInvoker(15, C:\Users\userh\AppData\Roaming\Kodi\addons\script.light.imdb.ratings.update\context.py): instantiating addon using automatically obtained id of "script.light.imdb.ratings.update" dependent on version 2.25.0 of the xbmc.python api
21:13:42.215 T:1956 DEBUG: [Light IMDb Ratings Update] - JSON Query: {"jsonrpc":"2.0","method":"VideoLibrary.GetMovieDetails","params":{"movieid":2019,"properties":["imdbnumber","ratings","top250"]},"id":1}
21:13:42.224 T:1956 DEBUG: [Light IMDb Ratings Update] - JSON Response: {"error":{"code":-32602,"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
21:13:42.225 T:1956 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: ('result',)
Traceback (most recent call last):
File "C:\Users\userh\AppData\Roaming\Kodi\addons\script.light.imdb.ratings.update\context.py", line 16, in <module>
UpdateContext()
File "C:\Users\userh\AppData\Roaming\Kodi\addons\script.light.imdb.ratings.update\context.py", line 13, in UpdateContext
update_context.open_context_menu( sys.listitem.getfilename(), sys.listitem.getLabel() )
File "C:\Users\userh\AppData\Roaming\Kodi\addons\script.light.imdb.ratings.update\resources\core\update_context.py", line 67, in open_context_menu
if jSonResponse['result'].has_key( 'moviedetails' ):
KeyError: ('result',)
-->End of Python script error report<--
21:13:42.234 T:7200 DEBUG: ------ Window Init (DialogNotification.xml) ------
21:13:42.251 T:1956 INFO: Python script stopped
21:13:42.251 T:1956 DEBUG: Thread LanguageInvoker 1956 terminating
Full debug log: https://pastebin.com/bN0Ujc81
What could the problem be? If I need to do anything to help bughunting, let me know.
Thanks!
I took a look to the log and to be honest I don't understand where the issue could be (I just see that the JSON request returns with an error). My question is: do you know what has been changed in your Kodi installation between the moment the add-on passed from working to not working? You said "It used to work great..."...
Cheers!