do not raise exception for not implemented search

This commit is contained in:
Christophe Benz 2010-07-06 14:46:28 +02:00
commit 3ccd0dc8ab

View file

@ -16,8 +16,10 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from weboob.core.backend import BaseBackend
from logging import debug
from weboob.capabilities.video import ICapVideo
from weboob.core.backend import BaseBackend
from .browser import InaBrowser
@ -38,3 +40,7 @@ class InaBackend(BaseBackend, ICapVideo):
def get_video(self, _id):
return self.browser.get_video(_id)
def iter_search_results(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False):
debug(u'backend ina: iter_search_results is not implemented')
return []