rename iter_search_results to either search_videos and search_gallery (closes #779)
This commit is contained in:
parent
46f94a1d78
commit
56691d7ea7
39 changed files with 52 additions and 52 deletions
|
|
@ -48,9 +48,9 @@ class CanalplusBackend(BaseBackend, ICapVideo, ICapCollection):
|
|||
def create_default_browser(self):
|
||||
return self.create_browser(quality=self.config['quality'].get())
|
||||
|
||||
def iter_search_results(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False, max_results=None):
|
||||
def search_videos(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False, max_results=None):
|
||||
with self.browser:
|
||||
return self.browser.iter_search_results(pattern)
|
||||
return self.browser.search_videos(pattern)
|
||||
|
||||
def get_video(self, _id):
|
||||
m = re.match('https?://www\.canal-?plus\.fr/.*\?vid=(\d+)', _id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue