2017-11-07, 21:17
I get the following error when I try to open the 'Light IMDB Ratings Update' context menu on an episode that was scraped by themoviedb:
Code:
01:31:34.465 T:545627459808 DEBUG: [Light IMDb Ratings Update] - JSON Query: {"jsonrpc":"2.0","method":"VideoLibrary.GetEpisodeDetails","params":{"episodeid":8867,"properties":["uniqueid","rating","votes","episode","season","showtitle"]},"id":1}
01:31:34.529 T:545627459808 DEBUG: [Light IMDb Ratings Update] - JSON Response: {"id":1,"jsonrpc":"2.0","result":{"episodedetails":{"episode":1,"episodeid":8867,"label":"Arktis - Der Pol des Lebens","rating":0.0,"season":1,"showtitle":"Die größten Naturereignisse","uniqueid":{"unknown":"702597"},"votes":"0"}}}
01:31:34.531 T:545627459808 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeEncodeError'>
Error Contents: 'ascii' codec can't encode characters in position 6-7: ordinal not in range(128)
Traceback (most recent call last):
File "/storage/.kodi/addons/script.light.imdb.ratings.update/context.py", line 16, in <module>
UpdateContext()
File "/storage/.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 "/storage/.kodi/addons/script.light.imdb.ratings.update/resources/core/update_context.py", line 59, in open_context_menu
Title = str( item.get('showtitle') ) + " " + str( item.get('season') ) + "x" + str( "%02d" % item.get('episode') )
UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-7: ordinal not in range(128)
-->End of Python script error report<--