Kickasstorrent fix #156

This commit is contained in:
Ruud committed 2012-04-27 13:26:12 +02:00
1 parent b2ad1f12b5
commit 7df659a302
1 file changed
+1 -1
@@ -127,7 +127,7 @@ class KickAssTorrents(TorrentProvider):
return tryInt(age) return tryInt(age)
def download(self, url = '', nzb_id = ''): 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) compressedstream = StringIO.StringIO(compressed_data)
gzipper = gzip.GzipFile(fileobj = compressedstream) gzipper = gzip.GzipFile(fileobj = compressedstream)