1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +01:00

Fix name clash

Forgot about this one
This commit is contained in:
Rnhmjoj 2014-12-03 20:21:46 +01:00
parent 23570d75ff
commit a37ea20956

View File

@ -438,9 +438,9 @@ def main():
for link in chosen_links:
path = '/ajax_details_filelist.php'
query = '?id=' + identifiers[int(link)]
request = request.Request(mirror + path + query)
request.add_header('Accept-encoding', 'gzip')
f = request.urlopen(request)
req = request.Request(mirror + path + query)
req.add_header('Accept-encoding', 'gzip')
f = request.urlopen(req)
if f.info().get('Content-Encoding') == 'gzip':
f = gzip.GzipFile(fileobj=BytesIO(f.read()))