]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[theoperaplatform] Add extractor
authorJuanjo Benages <juanjo@benages.eu>
Thu, 13 Oct 2016 18:13:54 +0000 (20:13 +0200)
committerSergey M․ <dstftw@gmail.com>
Sat, 15 Oct 2016 17:21:15 +0000 (00:21 +0700)
youtube_dl/extractor/arte.py
youtube_dl/extractor/extractors.py

index dbac24b18aeac5d151caae3987374165ebeb58ac..21d336ca702ac4223a52722cab46898f42a3ac78 100644 (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):
index 75e16af4ef1a070fd1c6a7322622141205ddc166..9797d855a47c9886ca0fe779755e2e3f9dd4813f 100644 (file)
@@ -66,6 +66,7 @@ from .arte import (
     ArteTVDDCIE,
     ArteTVMagazineIE,
     ArteTVEmbedIE,
+    ArteTVOperaPlatformIE,
     ArteTVPlaylistIE,
 )
 from .atresplayer import AtresPlayerIE