[ina] fix : site changed
This commit is contained in:
parent
11efe2d85d
commit
91f11bc948
5 changed files with 52 additions and 104 deletions
|
|
@ -27,10 +27,4 @@ __all__ = ['InaVideo']
|
|||
class InaVideo(BaseVideo):
|
||||
@classmethod
|
||||
def id2url(cls, _id):
|
||||
if not '.' in _id:
|
||||
return None
|
||||
site, _id = _id.split('.', 1)
|
||||
if site == 'boutique':
|
||||
return 'http://boutique.ina.fr/video/%s.html' % _id
|
||||
if site == 'www':
|
||||
return 'http://www.ina.fr/%s.html' % _id
|
||||
return "http://player.ina.fr/notices/%s.mrss" % _id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue