mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-17 21:14:04 -05:00
raise ExtractorError if the page doesn't contain a video
This commit is contained in:
parent
f3003531a5
commit
967c9076a3
1 changed files with 2 additions and 0 deletions
|
@ -79,3 +79,5 @@ def _real_extract(self, url):
|
|||
'uploader': owner.get('realname'),
|
||||
'comment_count': int_or_none(video_info.get('comments', {}).get('_content')),
|
||||
}
|
||||
else:
|
||||
raise ExtractorError('not a video', expected=True)
|
||||
|
|
Loading…
Reference in a new issue