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
pull/367/head
Jonas Reeb 2024-01-02 11:05:51 +01:00
parent 314a5d6c14
commit 2f7f72a553
1 changed files with 1 additions and 0 deletions

View File

@ -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)