1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 09:12:40 +01:00

Ignore mhtml formats from -f mergeall

Closes #3324
This commit is contained in:
pukkandan 2022-04-07 16:41:51 +05:30
parent bd4073c535
commit 316f2650f8
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

View File

@ -2179,7 +2179,8 @@ def selector_function(ctx):
yield from _check_formats(ctx['formats'][::-1]) yield from _check_formats(ctx['formats'][::-1])
elif format_spec == 'mergeall': elif format_spec == 'mergeall':
def selector_function(ctx): 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: if not formats:
return return
merged_format = formats[-1] merged_format = formats[-1]