logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 39aa42ffbbe4df95ded3e70d4126808898a43f24
parent ec1b9577ba31b7b078eec370680f84909b2e70e3
Author: Sergey M․ <dstftw@gmail.com>
Date:   Mon, 16 Mar 2015 00:21:38 +0600

[ard] Capture and output time restricted videos (Closes #5213)

Diffstat:

Myoutube_dl/extractor/ard.py3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/ard.py b/youtube_dl/extractor/ard.py @@ -50,6 +50,9 @@ class ARDMediathekIE(InfoExtractor): if '>Der gewünschte Beitrag ist nicht mehr verfügbar.<' in webpage: raise ExtractorError('Video %s is no longer available' % video_id, expected=True) + if 'Diese Sendung ist für Jugendliche unter 12 Jahren nicht geeignet. Der Clip ist deshalb nur von 20 bis 6 Uhr verfügbar.' in webpage: + raise ExtractorError('This program is only suitable for those aged 12 and older. Video %s is therefore only available between 20 pm and 6 am.' % video_id, expected=True) + if re.search(r'[\?&]rss($|[=&])', url): doc = parse_xml(webpage) if doc.tag == 'rss':