1
0
Fork 0
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:
bashonly 2025-02-19 14:02:01 -06:00
parent 5a7d0a0093
commit 8d9475e161
No known key found for this signature in database
GPG key ID: 783F096F253D15B0

View file

@ -504,8 +504,7 @@ def _real_extract(self, url):
return self.playlist_result(
self._extract_nodes(nodes, True), video_id,
format_field(username, None, 'Post by %s'), description)
video_url = self._og_search_video_url(webpage, secure=False)
raise ExtractorError('There is no video in this post', expected=True)
formats = [{
'url': video_url,