1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-26 04:02:11 +00:00

raise ExtractorError if the page doesn't contain a video

This commit is contained in:
remitamine 2015-11-05 18:01:13 +01:00
parent f3003531a5
commit 967c9076a3

View file

@ -79,3 +79,5 @@ class FlickrIE(InfoExtractor):
'uploader': owner.get('realname'), 'uploader': owner.get('realname'),
'comment_count': int_or_none(video_info.get('comments', {}).get('_content')), 'comment_count': int_or_none(video_info.get('comments', {}).get('_content')),
} }
else:
raise ExtractorError('not a video', expected=True)