From ea159c014661453fd477778753d97282850cb730 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 11 Sep 2011 20:28:47 +0300 Subject: [PATCH] Search: Minor PirateBay fix --- src/searchengine/nova/engines/piratebay.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/searchengine/nova/engines/piratebay.py b/src/searchengine/nova/engines/piratebay.py index 32a57f52c..2e990dd8e 100644 --- a/src/searchengine/nova/engines/piratebay.py +++ b/src/searchengine/nova/engines/piratebay.py @@ -1,4 +1,4 @@ -#VERSION: 1.40 +#VERSION: 1.41 #AUTHORS: Fabien Devaux (fab@gnux.info) #CONTRIBUTORS: Christophe Dumez (chris@qbittorrent.org) @@ -105,8 +105,7 @@ class piratebay(object): while True and i<11: results = [] parser = self.SimpleSGMLParser(results, self.url) - dat = retrieve_url(self.url+'/search/%s/%u/7/%s' % (what, i, self.supported_categories[cat])) - print 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])) parser.feed(dat) parser.close() if len(results) <= 0: