diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-07 16:41:51 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-07 16:42:14 +0530 |
commit | 316f2650f8b588507159cddcd13941dd67a4f70c (patch) | |
tree | 7353f057069596a761713e61c2bdfb64683e7c91 | |
parent | bd4073c53575ef802720cd74c5415d6a6417c1dd (diff) | |
download | hypervideo-pre-316f2650f8b588507159cddcd13941dd67a4f70c.tar.lz hypervideo-pre-316f2650f8b588507159cddcd13941dd67a4f70c.tar.xz hypervideo-pre-316f2650f8b588507159cddcd13941dd67a4f70c.zip |
Ignore `mhtml` formats from `-f mergeall`
Closes #3324
-rw-r--r-- | yt_dlp/YoutubeDL.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index d03229d86..f5ea5a0b5 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -2179,7 +2179,8 @@ class YoutubeDL(object): yield from _check_formats(ctx['formats'][::-1]) elif format_spec == 'mergeall': def selector_function(ctx): - formats = list(_check_formats(ctx['formats'])) + formats = list(_check_formats( + f for f in ctx['formats'] if f.get('vcodec') != 'none' or f.get('acodec') != 'none')) if not formats: return merged_format = formats[-1] |