From 03318de5fe4b5ff2b940550acbfe8e10776dd153 Mon Sep 17 00:00:00 2001 From: Christian Klein Date: Tue, 10 May 2016 11:44:57 +0200 Subject: [PATCH] Extractor for www.philharmonie.tv --- 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..55c830c70 --- /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.*?)/' + _TESTS = [ + { + 'url': 'http://www.philharmonie.tv/veranstaltung/26/', + 'md5': '4cebde1eb60a53782d4f3992cbd46ec8', + 'info_dict': { + 'id': '28', + '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' + } + } + ] + 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'