mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
fixed mininova search engine
This commit is contained in:
parent
09ca6e97b8
commit
cf002e5ab2
1 changed files with 6 additions and 2 deletions
|
@ -208,8 +208,12 @@ class Mininova(object):
|
||||||
order = 'seeds' # must be one in self.table_items
|
order = 'seeds' # must be one in self.table_items
|
||||||
|
|
||||||
def get_link(lnk):
|
def get_link(lnk):
|
||||||
lnk = lnk.getElementsByTagName('a').item(0)
|
lnks = lnk.getElementsByTagName('a')
|
||||||
return self.url+lnk.attributes.get('href').value
|
if lnks.item(0).attributes.get('href').value.startswith('/faq'):
|
||||||
|
if len(lnks) > 1:
|
||||||
|
return self.url+lnks.item(1).attributes.get('href').value
|
||||||
|
else:
|
||||||
|
return self.url+lnks.item(0).attributes.get('href').value
|
||||||
|
|
||||||
def get_text(txt):
|
def get_text(txt):
|
||||||
if txt.nodeType == txt.TEXT_NODE:
|
if txt.nodeType == txt.TEXT_NODE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue