Fix Kickass search
It wasn't working at all anymore. Also fix searching with unicode characters.
This commit is contained in:
parent
a31a751e28
commit
aafcf1273b
2 changed files with 4 additions and 3 deletions
|
|
@ -22,6 +22,7 @@ from weboob.tools.backend import BaseBackend
|
|||
|
||||
from .browser import KickassBrowser
|
||||
|
||||
from urllib import quote_plus
|
||||
|
||||
__all__ = ['KickassBackend']
|
||||
|
||||
|
|
@ -49,4 +50,4 @@ class KickassBackend(BaseBackend, ICapTorrent):
|
|||
return self.browser.openurl(torrent.url.encode('utf-8')).read()
|
||||
|
||||
def iter_torrents(self, pattern):
|
||||
return self.browser.iter_torrents(pattern.replace(' ','+'))
|
||||
return self.browser.iter_torrents(quote_plus(pattern.encode('utf-8')))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue