update arte module to use arte api

This commit is contained in:
Bezleputh 2013-09-16 20:48:58 +02:00 committed by Florent
commit a5d5011979
5 changed files with 167 additions and 155 deletions

View file

@ -21,13 +21,14 @@
from weboob.capabilities.video import BaseVideo
__all__ = ['ArteVideo','ArteLiveVideo']
__all__ = ['ArteVideo', 'ArteLiveVideo']
class ArteVideo(BaseVideo):
@classmethod
def id2url(cls, _id):
return 'http://videos.arte.tv/fr/videos/%s.html' % _id
lang = _id[-1:]
return 'http://arte.tv/papi/tvguide/videos/stream/%s/%s/HBBTV' % (lang, _id)
class ArteLiveVideo(BaseVideo):