From dec819fb8c26a37ab4c49a272d017779ee6c4c29 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Fri, 2 Aug 2013 13:24:38 +0200 Subject: [PATCH] arte: Prevent module from catching all URLs The split_id function would make the id2url self.DOMAIN check not work. --- modules/arte/backend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/arte/backend.py b/modules/arte/backend.py index 9c87d9a8..ad388c4a 100644 --- a/modules/arte/backend.py +++ b/modules/arte/backend.py @@ -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)