add liveweb.arte.tv url management in arte module

This commit is contained in:
Bezleputh 2013-09-19 18:23:33 +02:00
commit 9d933a00eb
3 changed files with 25 additions and 3 deletions

View file

@ -55,7 +55,9 @@ class ArteBackend(BaseBackend, ICapVideo, ICapCollection):
if m:
return 'videos', m.group(1)
# TODO support live videos
m = re.match('https?://liveweb.arte.tv/\w+/video/(.*)/', _id)
if m:
return 'live_url', _id
return 'videos', _id
@ -65,6 +67,10 @@ class ArteBackend(BaseBackend, ICapVideo, ICapCollection):
if site == 'live':
return self.browser.get_live_video(_id)
elif site == 'live_url':
return self.browser.get_live_from_url(_id)
else:
return self.browser.get_video(_id)