2017-08-01, 21:55
(2017-07-31, 16:37)bsoriano Wrote: Hello axlt2002,
Thank you for your work on this addon. I installed it today and started using it. I have a large movie collection (4700+) and I was running the update manually, just for movies. The update did not complete, and I see the following in the kodi log:
10:31:44.514 T:4256 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: No JSON object could be decoded
Traceback (most recent call last):
File "C:\Users\Bart\AppData\Roaming\Kodi\addons\service.light.imdb.ratings.update/resources/library/update.py", line 228, in <module>
perform_update()
File "C:\Users\Bart\AppData\Roaming\Kodi\addons\service.light.imdb.ratings.update/resources/library/update.py", line 222, in perform_update
if onMovies == "true": Movies()
File "C:\Users\Bart\AppData\Roaming\Kodi\addons\service.light.imdb.ratings.update/resources/library/update.py", line 22, in __init__
self.doUpdate()
File "C:\Users\Bart\AppData\Roaming\Kodi\addons\service.light.imdb.ratings.update/resources/library/update.py", line 63, in doUpdate
jSonData = jSon.loads( jSonData )
File "C:\Program Files (x86)\Kodi\system\python\Lib\json\__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "C:\Program Files (x86)\Kodi\system\python\Lib\json\decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files (x86)\Kodi\system\python\Lib\json\decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
-->End of Python script error report<--
Is there an issue with movies with accented characters in them? The update stopped in a folder where I have all 8 parts of Goddard's Histoir(es) du cinéma. The IMDb ID is correct in all of the NFOs. Please let me know. Thanks.
Regards,
Bart
EDIT: I figured it out, there was an extraneous character in the IMDB ID for the movie where it stopped. I fixed the NFO, refreshed the movie and the update continued past it. It is still running, I will post if I run into any other problems.
Hi bsoriano,
Thanks for writing. I take the occasion to make a clarification that can be useful for the other users.
During the update phase, any error that may happen is not depending on the add-on itself: if the update works for a movie, why should not work for another? Therefore, one of the following issues have happened:
- Internet connection drop
- Problems related to the IMDb site (e.g. offline)
- The IMDb in the info file is not in the correct format (the add-on just check if it begins with "tt" or if it is missing) and therefore there is an error when making the query to the IMDb site
- The IMDb of a movie has been replaced and deleted on the IMDb site (it happened once to me...)
Having said that, I wish you all a great summer time!