Prevent to catch all urls on arretsurimages module

This commit is contained in:
Florent 2013-10-30 16:41:11 +01:00
commit 8f732eafb8

View file

@ -49,6 +49,8 @@ class ArretSurImagesBackend(BaseBackend, ICapVideo, ICapCollection):
# raise UserError('Search does not work on ASI website, use ls latest command')
def get_video(self, _id):
if _id.startswith('http://') and not _id.startswith('http://www.arretsurimages.net'):
return None
with self.browser:
return self.browser.get_video(_id)