Fix `--compat-options filename` (#629)

The correct default filename is `%(title)s-%(id)s.%(ext)s`

Authored by: stdedos
pull/643/head
Stavros Ntentos 3 years ago committed by GitHub
parent 36576d7c4c
commit 9d65e7bd6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -317,7 +317,7 @@ def _real_main(argv=None):
outtmpl_default = opts.outtmpl.get('default')
if 'filename' in compat_opts:
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})
else:
_unused_compat_opt('filename')

Loading…
Cancel
Save