fix returned values for iterators
This commit is contained in:
parent
51239167d3
commit
83d5af3572
2 changed files with 2 additions and 3 deletions
|
|
@ -42,4 +42,4 @@ class InaBackend(BaseBackend, ICapVideo):
|
||||||
|
|
||||||
def iter_search_results(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False, required_fields=None):
|
def iter_search_results(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False, required_fields=None):
|
||||||
debug(u'backend ina: iter_search_results is not implemented')
|
debug(u'backend ina: iter_search_results is not implemented')
|
||||||
return
|
return set()
|
||||||
|
|
|
||||||
|
|
@ -45,5 +45,4 @@ class YoujizzBackend(BaseBackend, ICapVideo):
|
||||||
def iter_search_results(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False, required_fields=None):
|
def iter_search_results(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False, required_fields=None):
|
||||||
if not nsfw:
|
if not nsfw:
|
||||||
return
|
return
|
||||||
for video in self.browser.iter_search_results(pattern, required_fields=required_fields):
|
return self.browser.iter_search_results(pattern, required_fields=required_fields)
|
||||||
yield video
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue