implement ICapVideoProvider.iter_search_results()

This commit is contained in:
Romain Bignon 2010-04-16 17:19:19 +02:00
commit e3ad695346
5 changed files with 54 additions and 4 deletions

View file

@ -35,6 +35,15 @@ class ICapVideoProvider(ICap):
def iter_page_urls(self, mozaic_url):
raise NotImplementedError()
def iter_search_results(self, pattern=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
"""
raise NotImplementedError()
def get_video(self, _id):
"""
Get a Video from an ID.