enabled spaced search in gazelle
This commit is contained in:
parent
27242e80ba
commit
b23de78b47
1 changed files with 2 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ from weboob.tools.browser import BaseBrowser
|
||||||
|
|
||||||
from .pages.index import IndexPage, LoginPage
|
from .pages.index import IndexPage, LoginPage
|
||||||
from .pages.torrents import TorrentsPage
|
from .pages.torrents import TorrentsPage
|
||||||
|
import urllib
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['GazelleBrowser']
|
__all__ = ['GazelleBrowser']
|
||||||
|
|
@ -60,7 +61,7 @@ class GazelleBrowser(BaseBrowser):
|
||||||
return self.location('%s://%s/login.php' % (self.PROTOCOL, self.DOMAIN))
|
return self.location('%s://%s/login.php' % (self.PROTOCOL, self.DOMAIN))
|
||||||
|
|
||||||
def iter_torrents(self, pattern):
|
def iter_torrents(self, pattern):
|
||||||
self.location('/torrents.php?searchstr=%s' % pattern)
|
self.location('/torrents.php?searchstr=%s' % urllib.quote_plus(pattern))
|
||||||
|
|
||||||
assert self.is_on_page(TorrentsPage)
|
assert self.is_on_page(TorrentsPage)
|
||||||
return self.page.iter_torrents()
|
return self.page.iter_torrents()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue