From 717a4b00e1366ecce7e1d90adf9a79e0119be4f8 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 25 Dec 2008 19:12:36 +0000 Subject: [PATCH] - Fixed piratebay plugin --- src/search_engine/engines/piratebay.py | 6 +++--- src/search_engine/engines/versions.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/search_engine/engines/piratebay.py b/src/search_engine/engines/piratebay.py index 51306fa2a..0fcf420f7 100644 --- a/src/search_engine/engines/piratebay.py +++ b/src/search_engine/engines/piratebay.py @@ -1,4 +1,4 @@ -#VERSION: 1.01 +#VERSION: 1.04 #AUTHORS: Fabien Devaux (fab@gnux.info) # Redistribution and use in source and binary forms, with or without @@ -51,7 +51,7 @@ class piratebay(object): if params['href'].startswith('/browse'): self.current_item = {} self.td_counter = 0 - elif params['href'].startswith('/tor'): + elif params['href'].startswith('/tor'): self.code = params['href'].split('/')[2] elif params['href'].startswith('http://torrents.thepiratebay.org/%s'%self.code): self.current_item['link']=params['href'].strip() @@ -96,7 +96,7 @@ class piratebay(object): while True and i<11: results = [] 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.close() if len(results) <= 0: diff --git a/src/search_engine/engines/versions.txt b/src/search_engine/engines/versions.txt index 2bae7047b..da971f9eb 100644 --- a/src/search_engine/engines/versions.txt +++ b/src/search_engine/engines/versions.txt @@ -2,4 +2,4 @@ isohunt: 1.1 torrentreactor: 1.02 btjunkie: 1.13 mininova: 1.13 -piratebay: 1.01 +piratebay: 1.04