From fc83315c164afd74734adf27e0f7fec2011904aa Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Tue, 16 Feb 2021 21:35:52 -0500 Subject: New upstream version 1.16.5. --- gallery_dl/postprocessor/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gallery_dl/postprocessor') diff --git a/gallery_dl/postprocessor/metadata.py b/gallery_dl/postprocessor/metadata.py index 71a67c1..c08f111 100644 --- a/gallery_dl/postprocessor/metadata.py +++ b/gallery_dl/postprocessor/metadata.py @@ -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() -- cgit v1.2.3