mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
- Updated search engine plugins in order to limit to 10 pages
This commit is contained in:
parent
fd4ce53eb1
commit
731438a19a
6 changed files with 19 additions and 19 deletions
|
@ -1,4 +1,4 @@
|
||||||
#VERSION: 1.10
|
#VERSION: 1.11
|
||||||
#AUTHORS: Fabien Devaux (fab@gnux.info)
|
#AUTHORS: Fabien Devaux (fab@gnux.info)
|
||||||
from novaprinter import prettyPrinter
|
from novaprinter import prettyPrinter
|
||||||
import urllib
|
import urllib
|
||||||
|
@ -10,7 +10,7 @@ class btjunkie(object):
|
||||||
|
|
||||||
def search(self, what):
|
def search(self, what):
|
||||||
i = 1
|
i = 1
|
||||||
while True:
|
while True and i<11:
|
||||||
res = 0
|
res = 0
|
||||||
dat = urllib.urlopen(self.url+'/search?q=%s&o=52&p=%d'%(what,i)).read().decode('utf8', 'replace')
|
dat = urllib.urlopen(self.url+'/search?q=%s&o=52&p=%d'%(what,i)).read().decode('utf8', 'replace')
|
||||||
# I know it's not very readable, but the SGML parser feels in pain
|
# I know it's not very readable, but the SGML parser feels in pain
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#VERSION: 1.00
|
#VERSION: 1.01
|
||||||
#AUTHORS: Gekko Dam Beer (gekko04@users.sourceforge.net)
|
#AUTHORS: Gekko Dam Beer (gekko04@users.sourceforge.net)
|
||||||
from novaprinter import prettyPrinter
|
from novaprinter import prettyPrinter
|
||||||
import sgmllib
|
import sgmllib
|
||||||
|
@ -67,7 +67,7 @@ class isohunt(object):
|
||||||
|
|
||||||
def search(self, what):
|
def search(self, what):
|
||||||
i = 1
|
i = 1
|
||||||
while True:
|
while True and i<11:
|
||||||
results = []
|
results = []
|
||||||
parser = self.SimpleSGMLParser(results, self.url)
|
parser = self.SimpleSGMLParser(results, self.url)
|
||||||
dat = urllib.urlopen(self.url+'/torrents.php?ihq=%s&ihp=%s'%(what,i)).read().decode('utf-8', 'replace')
|
dat = urllib.urlopen(self.url+'/torrents.php?ihq=%s&ihp=%s'%(what,i)).read().decode('utf-8', 'replace')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#VERSION: 1.11
|
#VERSION: 1.12
|
||||||
#AUTHORS: Fabien Devaux (fab@gnux.info)
|
#AUTHORS: Fabien Devaux (fab@gnux.info)
|
||||||
from novaprinter import prettyPrinter
|
from novaprinter import prettyPrinter
|
||||||
import urllib
|
import urllib
|
||||||
|
@ -29,7 +29,7 @@ class mininova(object):
|
||||||
else:
|
else:
|
||||||
return ''.join([ get_text(n) for n in txt.childNodes])
|
return ''.join([ get_text(n) for n in txt.childNodes])
|
||||||
page = 1
|
page = 1
|
||||||
while True:
|
while True and page<11:
|
||||||
res = 0
|
res = 0
|
||||||
dat = urllib.urlopen(self.url+'/search/%s/seeds/%d'%(what, page)).read().decode('utf-8', 'replace')
|
dat = urllib.urlopen(self.url+'/search/%s/seeds/%d'%(what, page)).read().decode('utf-8', 'replace')
|
||||||
dat = re.sub("<a href=\"http://www.boardreader.com/index.php.*\"", "<a href=\"plop\"", dat)
|
dat = re.sub("<a href=\"http://www.boardreader.com/index.php.*\"", "<a href=\"plop\"", dat)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#VERSION: 1.00
|
#VERSION: 1.01
|
||||||
#AUTHORS: Fabien Devaux (fab@gnux.info)
|
#AUTHORS: Fabien Devaux (fab@gnux.info)
|
||||||
from novaprinter import prettyPrinter
|
from novaprinter import prettyPrinter
|
||||||
import sgmllib
|
import sgmllib
|
||||||
|
@ -68,7 +68,7 @@ class piratebay(object):
|
||||||
ret = []
|
ret = []
|
||||||
i = 0
|
i = 0
|
||||||
order = 'se'
|
order = 'se'
|
||||||
while True:
|
while True and i<11:
|
||||||
results = []
|
results = []
|
||||||
parser = self.SimpleSGMLParser(results, self.url)
|
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/0/0' % (what, i)).read()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#VERSION: 1.00
|
#VERSION: 1.01
|
||||||
#AUTHORS: Gekko Dam Beer (gekko04@users.sourceforge.net)
|
#AUTHORS: Gekko Dam Beer (gekko04@users.sourceforge.net)
|
||||||
from novaprinter import prettyPrinter
|
from novaprinter import prettyPrinter
|
||||||
import sgmllib
|
import sgmllib
|
||||||
|
@ -67,7 +67,7 @@ class torrentreactor(object):
|
||||||
|
|
||||||
def search(self, what):
|
def search(self, what):
|
||||||
i = 0
|
i = 0
|
||||||
while True:
|
while True and i<11:
|
||||||
results = []
|
results = []
|
||||||
parser = self.SimpleSGMLParser(results, self.url)
|
parser = self.SimpleSGMLParser(results, self.url)
|
||||||
dat = urllib.urlopen(self.url+'/search.php?search=&words=%s&cid=&sid=&type=2&orderby=a.seeds&asc=0&skip=%s'%(what,(i*35))).read().decode('utf-8', 'replace')
|
dat = urllib.urlopen(self.url+'/search.php?search=&words=%s&cid=&sid=&type=2&orderby=a.seeds&asc=0&skip=%s'%(what,(i*35))).read().decode('utf-8', 'replace')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
isohunt: 1.00
|
isohunt: 1.01
|
||||||
torrentreactor: 1.00
|
torrentreactor: 1.01
|
||||||
btjunkie: 1.10
|
btjunkie: 1.11
|
||||||
mininova: 1.11
|
mininova: 1.12
|
||||||
piratebay: 1.00
|
piratebay: 1.01
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue