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:
parent
33b682d24a
commit
dec819fb8c
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue