1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2026-02-15 04:56:09 +00:00

No longer enable --mtime by default

This commit is contained in:
sepro
2025-03-22 22:06:02 +01:00
parent 6a6d97b2cb
commit 76889fdd7b
6 changed files with 20 additions and 10 deletions

View File

@@ -159,6 +159,12 @@ def set_compat_opts(opts):
elif 'prefer-vp9-sort' in opts.compat_opts:
opts.format_sort.extend(FormatSorter._prefer_vp9_sort)
if 'mtime-by-default' in opts.compat_opts:
if opts.updatetime is None:
opts.updatetime = True
else:
_unused_compat_opt('mtime-by-default')
_video_multistreams_set = set_default_compat('multistreams', 'allow_multiple_video_streams', False, remove_compat=False)
_audio_multistreams_set = set_default_compat('multistreams', 'allow_multiple_audio_streams', False, remove_compat=False)
if _video_multistreams_set is False and _audio_multistreams_set is False: