mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 14:12:30 -06:00
- Fixed plugin update && fixed btjunkie search plugin
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#VERSION: 1.00
|
||||
#VERSION: 1.01
|
||||
#AUTHORS: Fabien Devaux (fab@gnux.info)
|
||||
from novaprinter import prettyPrinter
|
||||
import urllib
|
||||
@@ -10,10 +10,10 @@ class btjunkie(object):
|
||||
name = 'btjunkie'
|
||||
|
||||
def search(self, what):
|
||||
dat = urllib.urlopen(self.url+'/search?q=%s'%what).read().decode('utf8', 'replace')
|
||||
dat = urllib.urlopen(self.url+'/search?q=%s&o=52'%what).read().decode('utf8', 'replace')
|
||||
# I know it's not very readable, but the SGML parser feels in pain
|
||||
section_re = re.compile('(?s)href="/torrent\?do=download.*?<tr>')
|
||||
torrent_re = re.compile('(?s)href="(?P<link>.*?do=download[^"]+).*?'
|
||||
section_re = re.compile('(?s)href="/torrent.*?<tr>')
|
||||
torrent_re = re.compile('(?s)href="(?P<link>.*?[^"]+).*?'
|
||||
'class="BlckUnd">(?P<name>.*?)</a>.*?'
|
||||
'>(?P<size>\d+MB)</font>.*?'
|
||||
'>(?P<seeds>\d+)</font>.*?'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
isohunt: 1.00
|
||||
torrentreactor: 1.00
|
||||
btjunkie: 1.00
|
||||
btjunkie: 1.01
|
||||
mininova: 1.00
|
||||
piratebay: 1.00
|
||||
Reference in New Issue
Block a user