Kickasstorrent fix #156

This commit is contained in:
Ruud
2012-04-27 13:26:12 +02:00
parent b2ad1f12b5
commit 7df659a302
@@ -127,7 +127,7 @@ class KickAssTorrents(TorrentProvider):
return tryInt(age)
def download(self, url = '', nzb_id = ''):
compressed_data = super(KickAssTorrents, self).download(url = url, nzb_id = nzb_id)
compressed_data = self.urlopen(url = url, headers = {'Referer': 'http://kat.ph/'})
compressedstream = StringIO.StringIO(compressed_data)
gzipper = gzip.GzipFile(fileobj = compressedstream)