Browse Source

Search: Minor PirateBay fix

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
ea159c0146
  1. 5
      src/searchengine/nova/engines/piratebay.py

5
src/searchengine/nova/engines/piratebay.py

@ -1,4 +1,4 @@
#VERSION: 1.40 #VERSION: 1.41
#AUTHORS: Fabien Devaux (fab@gnux.info) #AUTHORS: Fabien Devaux (fab@gnux.info)
#CONTRIBUTORS: Christophe Dumez (chris@qbittorrent.org) #CONTRIBUTORS: Christophe Dumez (chris@qbittorrent.org)
@ -105,8 +105,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 = retrieve_url(self.url+'/search/%s/%u/7/%s' % (what, i, self.supported_categories[cat])) dat = retrieve_url(self.url+'/search/%s/%d/7/%s' % (what, i, self.supported_categories[cat]))
print self.url+'/search/%s/%u/7/%s' % (what, i, self.supported_categories[cat])
parser.feed(dat) parser.feed(dat)
parser.close() parser.close()
if len(results) <= 0: if len(results) <= 0:

Loading…
Cancel
Save