mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 04:24:23 +00:00
- Improved mininova search engine support
This commit is contained in:
parent
e493776a73
commit
e9126aedc3
@ -1,5 +1,9 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
# Version: 2.03
|
||||
# Changelog:
|
||||
# - Little fix for mininova search engine when file name contain '<='
|
||||
|
||||
# Version: 2.02
|
||||
# Changelog:
|
||||
# - Fixed mininova search engine
|
||||
@ -218,6 +222,7 @@ class Mininova(object):
|
||||
return ''.join([ get_text(n) for n in txt.childNodes])
|
||||
dat = urllib.urlopen(self.url+'/search/%s/seeds'%(what,)).read().decode('utf-8', 'replace')
|
||||
dat = re.sub("<a href=\"http://www.boardreader.com/index.php.*\"", "<a href=\"plop\"", dat)
|
||||
dat = re.sub("<=", "<=", dat)
|
||||
x = minidom.parseString(dat.encode('utf-8', 'replace'))
|
||||
table = x.getElementsByTagName('table').item(0)
|
||||
if not table: return
|
||||
|
Loading…
x
Reference in New Issue
Block a user