2013-08-01, 19:44
(2013-07-29, 19:08)nktka Wrote: Here's the patch that somewhat fixed 4.4.6 for me on linux. Patch is against "frodo" git branch. Probably not the correct fix (similar exceptions happen from other places) but at least playing videos works again.
Code:diff --git a/YouTubeCore.py b/YouTubeCore.py
index d955e49..b088134 100644
--- a/YouTubeCore.py
+++ b/YouTubeCore.py
@@ -397,7 +397,10 @@ class YouTubeCore():
return ret_obj
if get("url_data"):
- request = urllib2.Request(link, urllib.urlencode(get("url_data")))
+ args = {}
+ for key, value in get("url_data").iteritems():
+ args[key] = unicode(value).encode('utf-8')
+ request = urllib2.Request(link, urllib.urlencode(args))
request.add_header('Content-Type', 'application/x-www-form-urlencoded')
elif get("request", "false") == "false":
if get("proxy"):
This works! Hope this makes it's way into the addon.