ensure '-s/--simulate' always prints filenames (#1360)

by assuming a potentially wrong filename extension in cases where the
correct one would only get known after a download started
pull/1374/head
Mike Fährmann 4 years ago
parent 83f465faca
commit b6719becf1
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -474,7 +474,9 @@ class DownloadJob(Job):
class SimulationJob(DownloadJob):
"""Simulate the extraction process without downloading anything"""
def handle_url(self, url, kwdict, fallback=None):
def handle_url(self, url, kwdict):
if not kwdict["extension"]:
kwdict["extension"] = "jpg"
self.pathfmt.set_filename(kwdict)
self.out.skip(self.pathfmt.path)
if self.sleep:

Loading…
Cancel
Save