youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 0d14e225fa031f37c34242551565b6dadbfa51af
parent 0fe64c04f8ae57ace54404a8b8bfb5deff552e2d
Author: Ricardo Garcia <sarbalap+freshmeat@gmail.com>
Date:   Tue, 18 Jan 2011 19:16:42 +0100

Omit code argument in addinfourl for Python 2.4

Diffstat:
Myoutube-dl | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/youtube-dl b/youtube-dl @@ -205,12 +205,12 @@ class YoutubeDLHandler(urllib2.HTTPHandler): # gzip if resp.headers.get('Content-encoding', '') == 'gzip': gz = gzip.GzipFile(fileobj=StringIO.StringIO(resp.read()), mode='r') - resp = urllib2.addinfourl(gz, old_resp.headers, old_resp.url, old_resp.code) + resp = urllib2.addinfourl(gz, old_resp.headers, old_resp.url) resp.msg = old_resp.msg # deflate if resp.headers.get('Content-encoding', '') == 'deflate': gz = StringIO.StringIO(self.deflate(resp.read())) - resp = urllib2.addinfourl(gz, old_resp.headers, old_resp.url, old_resp.code) + resp = urllib2.addinfourl(gz, old_resp.headers, old_resp.url) resp.msg = old_resp.msg return resp