diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-03-16 00:21:38 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-03-16 00:21:38 +0600 |
commit | 39aa42ffbbe4df95ded3e70d4126808898a43f24 (patch) | |
tree | c773d030c1a24fdc2c6f21139e0bec06cf262567 | |
parent | ec1b9577ba31b7b078eec370680f84909b2e70e3 (diff) |
[ard] Capture and output time restricted videos (Closes #5213)
-rw-r--r-- | youtube_dl/extractor/ard.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/ard.py b/youtube_dl/extractor/ard.py index 783b53e23..6a35ea463 100644 --- 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': |