Browse Source

[moniker] Check not found error (#5541)

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

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

@ -41,6 +41,9 @@ class MonikerIE(InfoExtractor):
video_id = self._match_id(url)
orig_webpage = self._download_webpage(url, video_id)
if '>File Not Found<' in orig_webpage:
raise ExtractorError('Video %s does not exist' % video_id, expected=True)
error = self._search_regex(
r'class="err">([^<]+)<', orig_webpage, 'error', default=None)
if error:


Loading…
Cancel
Save