diff options
author | Rogério Brito <rbrito@ime.usp.br> | 2016-11-30 17:22:52 -0200 |
---|---|---|
committer | Rogério Brito <rbrito@ime.usp.br> | 2016-11-30 17:22:52 -0200 |
commit | 87a0165ca7e39af4dacb7ec637063b2cd35ae40b (patch) | |
tree | ef753773addf91c27e791587361fc4512ec281cf /youtube_dl/extractor/arte.py | |
parent | ced7488f6d3a519b2c1b1cbd31048743fb8285bd (diff) | |
download | youtube-dl-87a0165ca7e39af4dacb7ec637063b2cd35ae40b.zip youtube-dl-87a0165ca7e39af4dacb7ec637063b2cd35ae40b.tar.gz youtube-dl-87a0165ca7e39af4dacb7ec637063b2cd35ae40b.tar.bz2 |
New upstream version 2016.12.01
Diffstat (limited to 'youtube_dl/extractor/arte.py')
-rw-r--r-- | youtube_dl/extractor/arte.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/youtube_dl/extractor/arte.py b/youtube_dl/extractor/arte.py index e0c5c18..69a23e8 100644 --- a/youtube_dl/extractor/arte.py +++ b/youtube_dl/extractor/arte.py @@ -1,4 +1,4 @@ -# encoding: utf-8 +# coding: utf-8 from __future__ import unicode_literals import re @@ -410,6 +410,22 @@ class ArteTVEmbedIE(ArteTVPlus7IE): return self._extract_from_json_url(json_url, video_id, lang) +class TheOperaPlatformIE(ArteTVPlus7IE): + IE_NAME = 'theoperaplatform' + _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': '970655901fa2e82e04c00b955e9afe7b', + 'info_dict': { + 'id': '060338-009-A', + 'ext': 'mp4', + 'title': 'Verdi - OTELLO', + 'upload_date': '20160927', + }, + }] + + class ArteTVPlaylistIE(ArteTVBaseIE): IE_NAME = 'arte.tv:playlist' _VALID_URL = r'https?://(?:www\.)?arte\.tv/guide/(?P<lang>fr|de|en|es)/[^#]*#collection/(?P<id>PL-\d+)' |