aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/arte.py
diff options
context:
space:
mode:
authorJuanjo Benages <juanjo@benages.eu>2016-10-13 20:13:54 +0200
committerSergey M․ <dstftw@gmail.com>2016-10-16 00:21:15 +0700
commit9c4258bcec91e2706f5707d4e526c267b5e5b14b (patch)
treebeab4e957e5a4a06a58c20827ecec29f544e2589 /youtube_dl/extractor/arte.py
parentea8aefd1d7d5935a7953c1ac76bb0f9b0ca3c4a5 (diff)
[theoperaplatform] Add extractor
Diffstat (limited to 'youtube_dl/extractor/arte.py')
-rw-r--r--youtube_dl/extractor/arte.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/youtube_dl/extractor/arte.py b/youtube_dl/extractor/arte.py
index dbac24b18..21d336ca7 100644
--- a/youtube_dl/extractor/arte.py
+++ b/youtube_dl/extractor/arte.py
@@ -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):