From 9d65e7bd6d739f256f548731d670f3ef4503f5f8 Mon Sep 17 00:00:00 2001 From: Stavros Ntentos <133706+stdedos@users.noreply.github.com> Date: Wed, 4 Aug 2021 21:01:37 +0300 Subject: [PATCH] Fix `--compat-options filename` (#629) The correct default filename is `%(title)s-%(id)s.%(ext)s` Authored by: stdedos --- yt_dlp/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 set_default_compat(compat_name, opt_name, default=True, remove_compat=True): 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')