2013-12-23, 11:18
This worked great for me, fixing the "exceptions.UnicodeEncodeError ... 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)".
You need to delete YouTubeCore.pyo after you edit YouTubeCore.py, so that it will be recompiled. Otherwise you will not see the change.
You need to delete YouTubeCore.pyo after you edit YouTubeCore.py, so that it will be recompiled. Otherwise you will not see the change.
(2013-12-15, 19:00)Vel2101 Wrote:(2013-12-14, 00:53)nicolas1 Wrote: OK. I have found the solution on:
https://code.google.com/p/youtubexbmc/is...ail?id=106
Following these instructions fixed it for me:
I was trying to login but the youtube url params contained utf-8 chars that were not parsed correctly.
I was able to fix this by adding the following line in YouTubeCore.py inside _fetchPage :
Right before:
request = urllib2.Request(link, urllib.urlencode(get("url_data")))
add this line to encode the values first
params["url_data"] = dict((k, v.encode('utf-8')) for (k, v) in get("url_data").items())
Hope this helps someone else.
for me it did not work :-(
Help! I loved the addon. And now I can not even login me ..