youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 86b4e98ac6f57c3703cd2082a69351ece797111c
parent 3bf8c316a663741ab806f48cf9121209aba88b72
Author: Sergey M․ <dstftw@gmail.com>
Date:   Mon, 20 Jul 2015 00:05:10 +0600

[ard:mediathek] Add audio test

Diffstat:
Myoutube_dl/extractor/ard.py | 15+++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/youtube_dl/extractor/ard.py b/youtube_dl/extractor/ard.py @@ -34,6 +34,17 @@ class ARDMediathekIE(InfoExtractor): 'description': 'Auf einem restaurierten Hof bei Wolbeck wird der Heilpraktiker Raffael Lembeck eines morgens von seiner Frau Stella tot aufgefunden. Das Opfer war offensichtlich in seiner Praxis zu Fall gekommen und ist dann verblutet, erklärt Prof. Boerne am Tatort.', }, 'skip': 'Blocked outside of Germany', + }, { + # audio + 'url': 'http://www.ardmediathek.de/tv/WDR-H%C3%B6rspiel-Speicher/Tod-eines-Fu%C3%9Fballers/WDR-3/Audio-Podcast?documentId=28488308&bcastId=23074086', + 'md5': '219d94d8980b4f538c7fcb0865eb7f2c', + 'info_dict': { + 'id': '28488308', + 'ext': 'mp3', + 'title': 'Tod eines Fußballers', + 'description': 'md5:f6e39f3461f0e1f54bfa48c8875c86ef', + 'duration': 3240, + }, }] def _extract_media_info(self, media_info_url, webpage, video_id): @@ -252,7 +263,7 @@ class ARDIE(InfoExtractor): class SportschauIE(ARDMediathekIE): IE_NAME = 'Sportschau' _VALID_URL = r'(?P<baseurl>https?://(?:www\.)?sportschau\.de/(?:[^/]+/)+video(?P<id>[^/#?]+))\.html' - _TEST = { + _TESTS = [{ 'url': 'http://www.sportschau.de/tourdefrance/videoseppeltkokainhatnichtsmitklassischemdopingzutun100.html', 'info_dict': { 'id': 'seppeltkokainhatnichtsmitklassischemdopingzutun100', @@ -265,7 +276,7 @@ class SportschauIE(ARDMediathekIE): # m3u8 download 'skip_download': True, }, - } + }] def _real_extract(self, url): mobj = re.match(self._VALID_URL, url)