1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[moniker] Check not found error (#5541)

This commit is contained in:
Sergey M․ 2015-04-27 23:46:16 +06:00
parent e206740fd7
commit 2419a376b9

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: