[job] apply 'extension-map' to 'SimulationJob' results

This commit is contained in:
Mike Fährmann
2025-08-02 07:28:12 +02:00
parent 8a97a1dad0
commit 491d70f918

View File

@@ -734,8 +734,8 @@ class SimulationJob(DownloadJob):
"""Simulate the extraction process without downloading anything"""
def handle_url(self, url, kwdict):
if not kwdict["extension"]:
kwdict["extension"] = "jpg"
ext = kwdict["extension"] or "jpg"
kwdict["extension"] = self.pathfmt.extension_map(ext, ext)
if self.sleep:
self.extractor.sleep(self.sleep(), "download")
if self.archive and self._archive_write_skip: