[arretsurimages] fix #1691, correctly implement search and add a test

This commit is contained in:
Bezleputh 2014-12-18 18:04:28 +01:00 committed by Florent Fourcot
commit 71347cb8f7
4 changed files with 17 additions and 7 deletions

View file

@ -41,7 +41,7 @@ class ArretSurImagesModule(Module, CapVideo, CapCollection):
BROWSER = ArretSurImagesBrowser
def create_default_browser(self):
return self.create_browser(self.config['login'].get(), self.config['password'].get())
return self.create_browser(self.config['login'].get(), self.config['password'].get(), get_home=False)
def search_videos(self, pattern, sortby=CapVideo.SEARCH_RELEVANCE, nsfw=False):
with self.browser: