From 5427e337d4ac71836fc59bf1733b3bfa98c2db7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 28 Dec 2025 22:46:52 +0100 Subject: [PATCH] [dl:ytdl] unset '_mtime_http' (#8767) prevent an mtime value from a previous HTTP download from being reused for a file downloaded by 'ytdl' --- gallery_dl/downloader/ytdl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gallery_dl/downloader/ytdl.py b/gallery_dl/downloader/ytdl.py index e9b3294e..0631614b 100644 --- a/gallery_dl/downloader/ytdl.py +++ b/gallery_dl/downloader/ytdl.py @@ -41,6 +41,7 @@ class YoutubeDLDownloader(DownloaderBase): kwdict = pathfmt.kwdict tries = 0 + kwdict["_mtime_http"] = None if ytdl_instance := kwdict.pop("_ytdl_instance", None): # 'ytdl' extractor self._prepare(ytdl_instance)