2019-08-01, 01:01
(2019-08-01, 00:57)Lunatixz Wrote:(2019-07-31, 12:26)sualfred Wrote:Code:
2019-07-31 12:25:07.107 T:27484 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 character u'\xe9' in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "E:\Kodi-Leia\portable_data\addons\plugin.video.themoviedb.helper\main.py", line 564, in <module>
router(sys.argv[2][1:])
File "E:\Kodi-Leia\portable_data\addons\plugin.video.themoviedb.helper\main.py", line 547, in router
list_items(items[category['request_key']], category['item_dbtype'], category['request_dbtype'])
File "E:\Kodi-Leia\portable_data\addons\plugin.video.themoviedb.helper\main.py", line 457, in list_items
url = get_url(info='item', tmdb_id=i.get('id', ''), type=item_dbtype, title=title)
File "E:\Kodi-Leia\portable_data\addons\plugin.video.themoviedb.helper\main.py", line 237, in get_url
return '{0}?{1}'.format(_url, urlencode(kwargs))
File "E:\Kodi-Leia\system\python\Lib\urllib.py", line 1343, in urlencode
v = quote_plus(str(v))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 3: ordinal not in range(128)
-->End of Python script error report<--
Your Unicode issue is here:
v = quote_plus(str(v))
Remove 'str'... for sanity avoid using 'str'.
BTW kudos on the release...
Thanks but urllib is not my module and that's not a line from my code - so I'm not quite sure where that's coming from as I don't have that issue with urllib.