From: Sergey M․ Date: Sun, 10 Aug 2014 10:53:17 +0000 (+0700) Subject: [ard] Show error message for videos that are no longer available (#3422) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=3a5beb0ca149cd0b1df5b29984033e20ccb85a61;p=youtube-dl [ard] Show error message for videos that are no longer available (#3422) --- diff --git a/youtube_dl/extractor/ard.py b/youtube_dl/extractor/ard.py index 957bdefcb..7f0da8ab6 100644 --- a/youtube_dl/extractor/ard.py +++ b/youtube_dl/extractor/ard.py @@ -51,6 +51,9 @@ class ARDIE(InfoExtractor): webpage = self._download_webpage(url, video_id) + if '>Der gewünschte Beitrag ist nicht mehr verfügbar.<' in webpage: + raise ExtractorError('Video %s is no longer available' % video_id, expected=True) + title = self._html_search_regex( [r'(.*?)', r'',