Browse Source

[ard] Show error message for videos that are no longer available (#3422)

totalwebcasting
Sergey M․ 10 years ago
parent
commit
3a5beb0ca1
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      youtube_dl/extractor/ard.py

+ 3
- 0
youtube_dl/extractor/ard.py View File

@ -51,6 +51,9 @@ class ARDIE(InfoExtractor):
webpage = self._download_webpage(url, video_id) 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( title = self._html_search_regex(
[r'<h1(?:\s+class="boxTopHeadline")?>(.*?)</h1>', [r'<h1(?:\s+class="boxTopHeadline")?>(.*?)</h1>',
r'<meta name="dcterms.title" content="(.*?)"/>', r'<meta name="dcterms.title" content="(.*?)"/>',


Loading…
Cancel
Save