From 9c4258bcec91e2706f5707d4e526c267b5e5b14b Mon Sep 17 00:00:00 2001 From: Juanjo Benages Date: Thu, 13 Oct 2016 20:13:54 +0200 Subject: [PATCH] [theoperaplatform] Add extractor --- youtube_dl/extractor/arte.py | 16 ++++++++++++++++ youtube_dl/extractor/extractors.py | 1 + 2 files changed, 17 insertions(+) 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/(?Pfr|de|en|es)/(?P[^/?#&]+)' + + _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): diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index 75e16af4e..9797d855a 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -66,6 +66,7 @@ from .arte import ( ArteTVDDCIE, ArteTVMagazineIE, ArteTVEmbedIE, + ArteTVOperaPlatformIE, ArteTVPlaylistIE, ) from .atresplayer import AtresPlayerIE -- 2.39.5