From 28fcbe9bc5b67cd80ec57d81cbf36367cec7658f Mon Sep 17 00:00:00 2001 From: ngosang Date: Fri, 15 May 2015 18:34:28 +0200 Subject: [PATCH] [search engine] Improve torrentz engine to return more results --- src/searchengine/nova/engines/torrentz.py | 4 ++-- src/searchengine/nova/engines/versions.txt | 2 +- src/searchengine/nova3/engines/torrentz.py | 4 ++-- src/searchengine/nova3/engines/versions.txt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/searchengine/nova/engines/torrentz.py b/src/searchengine/nova/engines/torrentz.py index 0e48e5064..2d7b5eef7 100644 --- a/src/searchengine/nova/engines/torrentz.py +++ b/src/searchengine/nova/engines/torrentz.py @@ -1,4 +1,4 @@ -#VERSION: 2.12 +#VERSION: 2.13 #AUTHORS: Diego de las Heras (diegodelasheras@gmail.com) # Redistribution and use in source and binary forms, with or without @@ -105,7 +105,7 @@ class torrentz(object): while i < 6: results_list = [] # "what" is already urlencoded - html = retrieve_url(self.url + '/search?f=%s&p=%d' % (what, i)) + html = retrieve_url(self.url + '/any?f=%s&p=%d' % (what, i)) parser = self.MyHtmlParser(results_list, self.url, trackers) parser.feed(html) parser.close() diff --git a/src/searchengine/nova/engines/versions.txt b/src/searchengine/nova/engines/versions.txt index 79d2d1163..1685b91ea 100644 --- a/src/searchengine/nova/engines/versions.txt +++ b/src/searchengine/nova/engines/versions.txt @@ -5,4 +5,4 @@ extratorrent: 1.2 kickasstorrents: 1.26 btdigg: 1.24 legittorrents: 1.02 -torrentz: 2.12 +torrentz: 2.13 diff --git a/src/searchengine/nova3/engines/torrentz.py b/src/searchengine/nova3/engines/torrentz.py index 0fe297e2a..9ced90268 100644 --- a/src/searchengine/nova3/engines/torrentz.py +++ b/src/searchengine/nova3/engines/torrentz.py @@ -1,4 +1,4 @@ -#VERSION: 2.12 +#VERSION: 2.13 #AUTHORS: Diego de las Heras (diegodelasheras@gmail.com) # Redistribution and use in source and binary forms, with or without @@ -105,7 +105,7 @@ class torrentz(object): while i < 6: results_list = [] # "what" is already urlencoded - html = retrieve_url(self.url + '/search?f=%s&p=%d' % (what, i)) + html = retrieve_url(self.url + '/any?f=%s&p=%d' % (what, i)) parser = self.MyHtmlParser(results_list, self.url, trackers) parser.feed(html) parser.close() diff --git a/src/searchengine/nova3/engines/versions.txt b/src/searchengine/nova3/engines/versions.txt index 6b2b0c5ea..27de5c8c8 100644 --- a/src/searchengine/nova3/engines/versions.txt +++ b/src/searchengine/nova3/engines/versions.txt @@ -5,4 +5,4 @@ extratorrent: 1.2 kickasstorrents: 1.26 btdigg: 1.23 legittorrents: 1.03 -torrentz: 2.12 +torrentz: 2.13