mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-01 23:44:53 +00:00
raise ExtractorError if the page doesn't contain a video
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user