diff options
author | Sergey M․ <dstftw@gmail.com> | 2014-08-10 17:53:17 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2014-08-10 17:53:17 +0700 |
commit | 3a5beb0ca149cd0b1df5b29984033e20ccb85a61 (patch) | |
tree | 0f50f64c3395069e47c7f32b68506ba61a4448a9 | |
parent | a6da7b6b9657f621a927cb4c7bc46cf7c6c27b11 (diff) |
[ard] Show error message for videos that are no longer available (#3422)
-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 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'<h1(?:\s+class="boxTopHeadline")?>(.*?)</h1>', r'<meta name="dcterms.title" content="(.*?)"/>', |