arte: Prevent module from catching all URLs

The split_id function would make the id2url self.DOMAIN check not work.
This commit is contained in:
Laurent Bachelier 2013-08-02 13:24:38 +02:00
commit dec819fb8c

View file

@ -55,6 +55,8 @@ class ArteBackend(BaseBackend, ICapVideo, ICapCollection):
return site, _id
def get_video(self, _id):
if _id.startswith('http://') and not _id.startswith('http://videos.arte.tv'):
return None
with self.browser:
site, _id = self.split_id(_id)