1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-31 00:42:58 +08:00

[theoperaplatform] Add extractor

This commit is contained in:
Juanjo Benages 2016-10-13 20:13:54 +02:00 committed by Sergey M․
parent ea8aefd1d7
commit 9c4258bcec
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
2 changed files with 17 additions and 0 deletions

View File

@ -408,6 +408,22 @@ class ArteTVEmbedIE(ArteTVPlus7IE):
lang = mobj.group('lang')
json_url = mobj.group('json_url')
return self._extract_from_json_url(json_url, video_id, lang)
class ArteTVOperaPlatformIE(ArteTVPlus7IE):
IE_NAME = 'arte.tv:operaplatform'
_VALID_URL = r'https?://www.theoperaplatform.eu/(?P<lang>fr|de|en|es)/(?P<id>[^/?#&]+)'
_TESTS = [{
'url': 'http://www.theoperaplatform.eu/de/opera/verdi-otello',
'md5': '80f5d3fc97957b5dbfc1ddfde93b8098',
'info_dict': {
'id': '060338-009-A',
'ext': 'mp4',
'title': 'Verdi - OTELLO',
'upload_date': '20160927',
},
}]
class ArteTVPlaylistIE(ArteTVBaseIE):

View File

@ -66,6 +66,7 @@ from .arte import (
ArteTVDDCIE,
ArteTVMagazineIE,
ArteTVEmbedIE,
ArteTVOperaPlatformIE,
ArteTVPlaylistIE,
)
from .atresplayer import AtresPlayerIE