return instead of yield set()
This commit is contained in:
parent
86aadbd1fa
commit
22cb3e1cbd
3 changed files with 3 additions and 3 deletions
|
|
@ -44,6 +44,6 @@ class YoujizzBackend(BaseBackend, ICapVideo):
|
|||
|
||||
def iter_search_results(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False, required_fields=None):
|
||||
if not nsfw:
|
||||
yield iter(set())
|
||||
return
|
||||
for video in self.browser.iter_search_results(pattern, required_fields=required_fields):
|
||||
yield video
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue