From 50510457074fe945b4df44fe72255f0df8a067f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 18 Aug 2025 15:14:40 +0200 Subject: [PATCH] [dl:http] emit debug message when 'adjust-extension' triggers --- gallery_dl/downloader/http.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gallery_dl/downloader/http.py b/gallery_dl/downloader/http.py index 45954834..111fd9ba 100644 --- a/gallery_dl/downloader/http.py +++ b/gallery_dl/downloader/http.py @@ -432,6 +432,9 @@ class HttpDownloader(DownloaderBase): if not SIGNATURE_CHECKS[pathfmt.extension](file_header): for ext, check in SIGNATURE_CHECKS.items(): if check(file_header): + self.log.debug( + "Adjusting filename extension of '%s' to '%s'", + pathfmt.filename, ext) pathfmt.set_extension(ext) pathfmt.build_path() return True