diff options
author | Stavros Ntentos <133706+stdedos@users.noreply.github.com> | 2021-08-04 21:01:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-04 23:31:37 +0530 |
commit | 9d65e7bd6d739f256f548731d670f3ef4503f5f8 (patch) | |
tree | eaa553bf536bab4310da38e08b9640dc668aeee0 | |
parent | 36576d7c4c3813d7dcd5b0d96010ea8c88e3d7c5 (diff) | |
download | hypervideo-pre-9d65e7bd6d739f256f548731d670f3ef4503f5f8.tar.lz hypervideo-pre-9d65e7bd6d739f256f548731d670f3ef4503f5f8.tar.xz hypervideo-pre-9d65e7bd6d739f256f548731d670f3ef4503f5f8.zip |
Fix `--compat-options filename` (#629)
The correct default filename is `%(title)s-%(id)s.%(ext)s`
Authored by: stdedos
-rw-r--r-- | yt_dlp/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py index e27b02c78..552b0cb56 100644 --- a/yt_dlp/__init__.py +++ b/yt_dlp/__init__.py @@ -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') |