Browse Source

[search engine] Improve torrentz engine to return more results

adaptive-webui-19844
ngosang 10 years ago
parent
commit
28fcbe9bc5
  1. 4
      src/searchengine/nova/engines/torrentz.py
  2. 2
      src/searchengine/nova/engines/versions.txt
  3. 4
      src/searchengine/nova3/engines/torrentz.py
  4. 2
      src/searchengine/nova3/engines/versions.txt

4
src/searchengine/nova/engines/torrentz.py

@ -1,4 +1,4 @@
#VERSION: 2.12 #VERSION: 2.13
#AUTHORS: Diego de las Heras (diegodelasheras@gmail.com) #AUTHORS: Diego de las Heras (diegodelasheras@gmail.com)
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -105,7 +105,7 @@ class torrentz(object):
while i < 6: while i < 6:
results_list = [] results_list = []
# "what" is already urlencoded # "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 = self.MyHtmlParser(results_list, self.url, trackers)
parser.feed(html) parser.feed(html)
parser.close() parser.close()

2
src/searchengine/nova/engines/versions.txt

@ -5,4 +5,4 @@ extratorrent: 1.2
kickasstorrents: 1.26 kickasstorrents: 1.26
btdigg: 1.24 btdigg: 1.24
legittorrents: 1.02 legittorrents: 1.02
torrentz: 2.12 torrentz: 2.13

4
src/searchengine/nova3/engines/torrentz.py

@ -1,4 +1,4 @@
#VERSION: 2.12 #VERSION: 2.13
#AUTHORS: Diego de las Heras (diegodelasheras@gmail.com) #AUTHORS: Diego de las Heras (diegodelasheras@gmail.com)
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -105,7 +105,7 @@ class torrentz(object):
while i < 6: while i < 6:
results_list = [] results_list = []
# "what" is already urlencoded # "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 = self.MyHtmlParser(results_list, self.url, trackers)
parser.feed(html) parser.feed(html)
parser.close() parser.close()

2
src/searchengine/nova3/engines/versions.txt

@ -5,4 +5,4 @@ extratorrent: 1.2
kickasstorrents: 1.26 kickasstorrents: 1.26
btdigg: 1.23 btdigg: 1.23
legittorrents: 1.03 legittorrents: 1.03
torrentz: 2.12 torrentz: 2.13

Loading…
Cancel
Save