mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-23 03:02:50 +01:00
[postprocessor:metadata] fix crash with 'extension-format'
Using the 'extension-format' option for events where no filename extension is available caused a crash. (fixes #1285)
This commit is contained in:
parent
23be48427c
commit
b3cd970d87
@ -91,7 +91,7 @@ class MetadataPP(PostProcessor):
|
||||
|
||||
def _filename_extfmt(self, pathfmt):
|
||||
kwdict = pathfmt.kwdict
|
||||
ext = kwdict["extension"]
|
||||
ext = kwdict.get("extension")
|
||||
kwdict["extension"] = pathfmt.extension
|
||||
kwdict["extension"] = pathfmt.prefix + self._extension_fmt(kwdict)
|
||||
filename = pathfmt.build_filename()
|
||||
|
Loading…
Reference in New Issue
Block a user