mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Fixed btjunkie search engine
This commit is contained in:
parent
8a9a23866f
commit
00b3677867
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
@ -14,7 +14,7 @@ class btjunkie(object):
|
||||||
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
|
||||||
section_re = re.compile('(?s)href="/torrent.*?<tr>')
|
section_re = re.compile('(?s)href="http://dl.btjunkie.org/torrent/.*?<tr>')
|
||||||
torrent_re = re.compile('(?s)href="(?P<link>.*?[^"]+).*?'
|
torrent_re = re.compile('(?s)href="(?P<link>.*?[^"]+).*?'
|
||||||
'class="BlckUnd">(?P<name>.*?)</a>.*?'
|
'class="BlckUnd">(?P<name>.*?)</a>.*?'
|
||||||
'>(?P<size>\d+MB)</font>.*?'
|
'>(?P<size>\d+MB)</font>.*?'
|
||||||
|
@ -27,7 +27,7 @@ class btjunkie(object):
|
||||||
torrent_infos = m.groupdict()
|
torrent_infos = m.groupdict()
|
||||||
torrent_infos['name'] = re.sub('</?font.*?>', '', torrent_infos['name'])
|
torrent_infos['name'] = re.sub('</?font.*?>', '', torrent_infos['name'])
|
||||||
torrent_infos['engine_url'] = self.url
|
torrent_infos['engine_url'] = self.url
|
||||||
torrent_infos['link'] = self.url+torrent_infos['link']
|
#torrent_infos['link'] = self.url+torrent_infos['link']
|
||||||
prettyPrinter(torrent_infos)
|
prettyPrinter(torrent_infos)
|
||||||
res = res + 1
|
res = res + 1
|
||||||
if res == 0:
|
if res == 0:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
isohunt: 1.01
|
isohunt: 1.01
|
||||||
torrentreactor: 1.02
|
torrentreactor: 1.02
|
||||||
btjunkie: 1.11
|
btjunkie: 1.12
|
||||||
mininova: 1.12
|
mininova: 1.12
|
||||||
piratebay: 1.01
|
piratebay: 1.01
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue