From 2e6658ce4901d6d0a443235d0fe4b4d15f2a78e0 Mon Sep 17 00:00:00 2001 From: georgekav <> Date: Mon, 6 Jun 2022 20:46:29 +0200 Subject: Use paths parameters from yt_dlp for passing the path instead of making it part of the output template. This allows to use postprocessors like split-chapters that use their own output template parameter key ("chapter") and not the default one. By providing paths dictionary the postprocessors will respect that path for the output of the processed files. --- app/ytdl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/ytdl.py b/app/ytdl.py index 38e29b8..0128329 100644 --- a/app/ytdl.py +++ b/app/ytdl.py @@ -72,7 +72,8 @@ class Download: 'quiet': True, 'no_color': True, #'skip_download': True, - 'outtmpl': os.path.join(self.download_dir, self.output_template), + 'paths': {"home": self.download_dir}, + 'outtmpl': { "default": self.output_template}, 'format': self.format, 'cachedir': False, 'socket_timeout': 30, -- cgit