1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-09-06 02:49:35 +02:00

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

This commit is contained in:
Sergey M․ 2015-03-16 00:21:38 +06:00
parent ec1b9577ba
commit 39aa42ffbb

View File

@ -50,6 +50,9 @@ def _real_extract(self, url):
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':