sublimeluvr23 / xbmc-addons

Automatically exported from code.google.com/p/xbmc-addons
0 stars 0 forks source link

youtube plugin "typo" #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The youtube plugin refuses to work with some versions of Python because of a 
small issue. Apparently urllib2.Request now requires header values to be 
strings, and wont convert them automatically. So this line in _fetchPage:

                        request.add_header('GData-Version', 2)

needs to be:

                        request.add_header('GData-Version', "2")

After that quick hack it starts working here. Thanks for a great addon! :)

(Python 2.7 here, but it might be affecting older versions as well)

Original issue reported on code.google.com by pierre-g...@ossman.eu on 29 Dec 2010 at 12:08

GoogleCodeExporter commented 8 years ago
i think you're talking about the other youtube plugin. not hosted here.

Original comment by nuka1195@gmail.com on 30 Dec 2010 at 2:07

GoogleCodeExporter commented 8 years ago
Oh, did I get the repositories mixed up? Terribly sorry. Never mind then. :)

Original comment by pierre-g...@ossman.eu on 30 Dec 2010 at 8:43