- Fixed piratebay plugin

This commit is contained in:
Christophe Dumez 2008-12-25 19:12:36 +00:00
commit 717a4b00e1
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
#VERSION: 1.01 #VERSION: 1.04
#AUTHORS: Fabien Devaux (fab@gnux.info) #AUTHORS: Fabien Devaux (fab@gnux.info)
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -96,7 +96,7 @@ class piratebay(object):
while True and i<11: while True and i<11:
results = [] results = []
parser = self.SimpleSGMLParser(results, self.url) parser = self.SimpleSGMLParser(results, self.url)
dat = urllib.urlopen(self.url+'/search/%s/%u/0/0' % (what, i)).read() dat = urllib.urlopen(self.url+'/search/%s/%u/7' % (what, i)).read()
parser.feed(dat) parser.feed(dat)
parser.close() parser.close()
if len(results) <= 0: if len(results) <= 0:

View file

@ -2,4 +2,4 @@ isohunt: 1.1
torrentreactor: 1.02 torrentreactor: 1.02
btjunkie: 1.13 btjunkie: 1.13
mininova: 1.13 mininova: 1.13
piratebay: 1.01 piratebay: 1.04