aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Jost <schnouki@schnouki.net>2016-02-08 22:17:21 +0100
committerSergey M․ <dstftw@gmail.com>2016-02-18 21:28:18 +0600
commit49625662a94bec2d289ed831f7e024c4c43098fd (patch)
tree5970270bc1815a624edd393d302ffa6ac9dee7de
parent8b809a079aa5b55d39029ee00c706e3c67ed311a (diff)
[arte:magazine] Add extractor
-rw-r--r--youtube_dl/extractor/__init__.py1
-rw-r--r--youtube_dl/extractor/arte.py23
2 files changed, 24 insertions, 0 deletions
diff --git a/youtube_dl/extractor/__init__.py b/youtube_dl/extractor/__init__.py
index 537d25777..4049141d9 100644
--- a/youtube_dl/extractor/__init__.py
+++ b/youtube_dl/extractor/__init__.py
@@ -45,6 +45,7 @@ from .arte import (
ArteTVFutureIE,
ArteTVCinemaIE,
ArteTVDDCIE,
+ ArteTVMagazineIE,
ArteTVEmbedIE,
)
from .atresplayer import AtresPlayerIE
diff --git a/youtube_dl/extractor/arte.py b/youtube_dl/extractor/arte.py
index c416f82ee..b524866d9 100644
--- a/youtube_dl/extractor/arte.py
+++ b/youtube_dl/extractor/arte.py
@@ -289,6 +289,29 @@ class ArteTVCinemaIE(ArteTVPlus7IE):
}
+class ArteTVMagazineIE(ArteTVPlus7IE):
+ IE_NAME = 'arte.tv:magazine'
+ _VALID_URL = r'https?://(?:www\.)?arte\.tv/magazine/(?P<name>.*?)/(?P<lang>fr|de)/(?P<id>.*?)'
+
+ _TESTS = [{
+ 'url': 'http://www.arte.tv/magazine/trepalium/fr/entretien-avec-le-realisateur-vincent-lannoo-trepalium',
+ 'md5': '66a093339c1278bb3719157ef07107b2',
+ 'info_dict': {
+ 'id': '065965-000-A',
+ 'ext': 'mp4',
+ 'title': 'Trepalium - Extrait Ep.01',
+ },
+ }, {
+ 'url': 'http://www.arte.tv/magazine/metropolis/de/frank-woeste-german-paris-metropolis',
+ 'md5': '53185a2b4876383552c037c21aeca8f7',
+ 'info_dict': {
+ 'id': '066149-000-A',
+ 'ext': 'mp4',
+ 'title': 'Bonus: Frank Woeste - ein deutscher Jazzmusiker in Paris',
+ },
+ }]
+
+
class ArteTVEmbedIE(ArteTVPlus7IE):
IE_NAME = 'arte.tv:embed'
_VALID_URL = r'''(?x)