mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-05-07 14:30:09 +00:00
[ie/reddit] Support --ignore-no-formats-error
(#12993)
Closes #12987 Authored by: bashonly
This commit is contained in:
parent
a3e91df30a
commit
28f04e8a5e
@ -388,7 +388,8 @@ class RedditIE(InfoExtractor):
|
||||
})
|
||||
if entries:
|
||||
return self.playlist_result(entries, video_id, **info)
|
||||
raise ExtractorError('No media found', expected=True)
|
||||
self.raise_no_formats('No media found', expected=True, video_id=video_id)
|
||||
return {**info, 'id': video_id}
|
||||
|
||||
# Check if media is hosted on reddit:
|
||||
reddit_video = traverse_obj(data, (
|
||||
|
Loading…
x
Reference in New Issue
Block a user