handle required fields
This commit is contained in:
parent
62fc2a87c7
commit
7ccf4a01eb
5 changed files with 38 additions and 20 deletions
|
|
@ -55,14 +55,15 @@ class ICapVideo(ICap):
|
|||
SEARCH_VIEWS,
|
||||
SEARCH_DATE) = range(4)
|
||||
|
||||
def iter_search_results(self, pattern=None, sortby=SEARCH_RELEVANCE, nsfw=False):
|
||||
def iter_search_results(self, pattern=None, sortby=SEARCH_RELEVANCE, nsfw=False, required_fields=None):
|
||||
"""
|
||||
Iter results of a search on a pattern. Note that if pattern is None,
|
||||
it get the latest videos.
|
||||
|
||||
@param pattern [str] pattern to search on
|
||||
@param sortby [enum] sort by...
|
||||
@param pattern [bool] include non-suitable for work videos if True
|
||||
@param nsfw [bool] include non-suitable for work videos if True
|
||||
@param required_fields [tuple] fields to load even if it takes many HTTP requests
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue