mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-05-19 17:35:43 -05:00
[ie/instagram] Raise expected error for non-video posts
Authored by: bashonly
This commit is contained in:
parent
5a7d0a0093
commit
8d9475e161
1 changed files with 1 additions and 2 deletions
|
@ -504,8 +504,7 @@ def _real_extract(self, url):
|
||||||
return self.playlist_result(
|
return self.playlist_result(
|
||||||
self._extract_nodes(nodes, True), video_id,
|
self._extract_nodes(nodes, True), video_id,
|
||||||
format_field(username, None, 'Post by %s'), description)
|
format_field(username, None, 'Post by %s'), description)
|
||||||
|
raise ExtractorError('There is no video in this post', expected=True)
|
||||||
video_url = self._og_search_video_url(webpage, secure=False)
|
|
||||||
|
|
||||||
formats = [{
|
formats = [{
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
|
|
Loading…
Reference in a new issue