update arte module to use arte api
This commit is contained in:
parent
2a9978989a
commit
a5d5011979
5 changed files with 167 additions and 155 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue