From bd6db24f8260c8778e5693fdc0ec126248f59de4 Mon Sep 17 00:00:00 2001 From: Christian Klein Date: Tue, 10 May 2016 11:44:57 +0200 Subject: [PATCH] [philharmonie] Add new extractor --- youtube_dl/extractor/extractors.py | 1 + youtube_dl/extractor/philharmonie.py | 45 ++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 youtube_dl/extractor/philharmonie.py diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index a0bb3d4c2..1662a9fce 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -571,6 +571,7 @@ from .periscope import ( PeriscopeIE, PeriscopeUserIE, ) +from .philharmonie import PhilharmonieTvIE from .philharmoniedeparis import PhilharmonieDeParisIE from .phoenix import PhoenixIE from .photobucket import PhotobucketIE diff --git a/youtube_dl/extractor/philharmonie.py b/youtube_dl/extractor/philharmonie.py new file mode 100644 index 000000000..159186979 --- /dev/null +++ b/youtube_dl/extractor/philharmonie.py @@ -0,0 +1,45 @@ +# encoding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor + + +class PhilharmonieTvIE(InfoExtractor): + _VALID_URL = r'http://www\.philharmonie\.tv/veranstaltung/(?P.*?)/' + _TEST = { + 'url': 'http://www.philharmonie.tv/veranstaltung/26/', + 'md5': '494b1e6605767f0d5bb141f879de1813', + 'info_dict': { + 'id': '26', + 'ext': 'flv', + 'title': u'03.05.2016 Tuesday 20:00 Uhr Konzert vom 03.05. ACHT BR\xdcCKEN | Musik f\xfcr K\xf6ln. Hauschka, G. Schwellenbach, D. Brandt, P. Frick, E. Sarp, J. Farah: Reich', + 'description': 'Trailer zum Livestram am 03.05.2016 Tuesday 20:00h, Konzert vom 03.05. ACHT BRÜCKEN | Musik für Köln. Hauschka, G. Schwellenbach, D. Brandt, P. Frick, E. Sarp, J. Farah: Reich', + } + } + + IE_NAME = 'philharmonie.tv' + + def _real_extract(self, url): + video_id = self._match_id(url) + + webpage = self._download_webpage(url, video_id) + source_url = self._search_regex( + r'