From 2f7f72a55303b6a05a60a96b1ea1669d793bfebc Mon Sep 17 00:00:00 2001 From: Jonas Reeb Date: Tue, 2 Jan 2024 11:05:51 +0100 Subject: [PATCH] metube-363 Pass paths also when extracting metadata In some cases, such as when writing thumbnails this call can still cause creation of non-temporary files on disk which should then also be placed in DOWNLOAD_DIR --- app/ytdl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/ytdl.py b/app/ytdl.py index 4aeb3e7..16a4fff 100644 --- a/app/ytdl.py +++ b/app/ytdl.py @@ -222,6 +222,7 @@ class DownloadQueue: 'no_color': True, 'extract_flat': True, 'ignore_no_formats_error': True, + 'paths': {"home": self.config.DOWNLOAD_DIR, "temp": self.config.TEMP_DIR}, **self.config.YTDL_OPTIONS, }).extract_info(url, download=False)