mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
- Improved mininova search engine support
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Version: 2.03
|
||||||
|
# Changelog:
|
||||||
|
# - Little fix for mininova search engine when file name contain '<='
|
||||||
|
|
||||||
# Version: 2.02
|
# Version: 2.02
|
||||||
# Changelog:
|
# Changelog:
|
||||||
# - Fixed mininova search engine
|
# - Fixed mininova search engine
|
||||||
@@ -218,6 +222,7 @@ class Mininova(object):
|
|||||||
return ''.join([ get_text(n) for n in txt.childNodes])
|
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 = 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("<a href=\"http://www.boardreader.com/index.php.*\"", "<a href=\"plop\"", dat)
|
||||||
|
dat = re.sub("<=", "<=", dat)
|
||||||
x = minidom.parseString(dat.encode('utf-8', 'replace'))
|
x = minidom.parseString(dat.encode('utf-8', 'replace'))
|
||||||
table = x.getElementsByTagName('table').item(0)
|
table = x.getElementsByTagName('table').item(0)
|
||||||
if not table: return
|
if not table: return
|
||||||
|
|||||||
Reference in New Issue
Block a user