mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-11 07:26:10 +01:00
Fix --compat-options filename
(#629)
The correct default filename is `%(title)s-%(id)s.%(ext)s` Authored by: stdedos
This commit is contained in:
parent
36576d7c4c
commit
9d65e7bd6d
@ -317,7 +317,7 @@ def set_default_compat(compat_name, opt_name, default=True, remove_compat=True):
|
|||||||
outtmpl_default = opts.outtmpl.get('default')
|
outtmpl_default = opts.outtmpl.get('default')
|
||||||
if 'filename' in compat_opts:
|
if 'filename' in compat_opts:
|
||||||
if outtmpl_default is None:
|
if outtmpl_default is None:
|
||||||
outtmpl_default = '%(title)s.%(id)s.%(ext)s'
|
outtmpl_default = '%(title)s-%(id)s.%(ext)s'
|
||||||
opts.outtmpl.update({'default': outtmpl_default})
|
opts.outtmpl.update({'default': outtmpl_default})
|
||||||
else:
|
else:
|
||||||
_unused_compat_opt('filename')
|
_unused_compat_opt('filename')
|
||||||
|
Loading…
Reference in New Issue
Block a user