return set() instead of None
This commit is contained in:
parent
8fe2facd9f
commit
cb32d30e4e
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ class YoujizzBackend(BaseBackend, ICapVideo):
|
|||
|
||||
def iter_search_results(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False):
|
||||
if not nsfw:
|
||||
return
|
||||
return set()
|
||||
return self.browser.iter_search_results(pattern)
|
||||
|
||||
def fill_video(self, video, fields):
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class YoupornBackend(BaseBackend, ICapVideo):
|
|||
SORTBY = ['relevance', 'rating', 'views', 'time']
|
||||
def iter_search_results(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False):
|
||||
if not nsfw:
|
||||
return
|
||||
return set()
|
||||
return self.browser.iter_search_results(pattern, self.SORTBY[sortby])
|
||||
|
||||
def iter_page_urls(self, mozaic_url):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue