diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-14 01:51:47 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-15 00:26:34 +0530 |
commit | 86c66b2d3edfa973818e9384777382c026fc14fb (patch) | |
tree | c70b374a5d2f083cb6f7663f3789c9201b3de9a4 /yt_dlp/YoutubeDL.py | |
parent | 37242e56f22af4dfc45cf34784f25782f52610fc (diff) | |
download | hypervideo-pre-86c66b2d3edfa973818e9384777382c026fc14fb.tar.lz hypervideo-pre-86c66b2d3edfa973818e9384777382c026fc14fb.tar.xz hypervideo-pre-86c66b2d3edfa973818e9384777382c026fc14fb.zip |
Fix `-F` for extractors that directly return url
Related: #693
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 9057824be..f7fc828ef 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -2231,7 +2231,7 @@ class YoutubeDL(object): if self.params.get('list_thumbnails'): self.list_thumbnails(info_dict) if self.params.get('listformats'): - if not info_dict.get('formats'): + if not info_dict.get('formats') and not info_dict.get('url'): raise ExtractorError('No video formats found', expected=True) self.list_formats(info_dict) if self.params.get('listsubtitles'): |