aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/postprocessor
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-11-13 19:17:03 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2020-11-13 19:17:03 -0500
commit209a3c800871cd68edd2bc7ae661a24ecd496d2d (patch)
treecf81c47ab57540b58292295c7d5641e9d2668291 /gallery_dl/postprocessor
parent5dc7d6f5902ddaee5223d041d5c10060f0c72430 (diff)
New upstream version 1.15.3.upstream/1.15.3
Diffstat (limited to 'gallery_dl/postprocessor')
-rw-r--r--gallery_dl/postprocessor/metadata.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gallery_dl/postprocessor/metadata.py b/gallery_dl/postprocessor/metadata.py
index a955ba3..f88dde7 100644
--- a/gallery_dl/postprocessor/metadata.py
+++ b/gallery_dl/postprocessor/metadata.py
@@ -22,6 +22,8 @@ class MetadataPP(PostProcessor):
if mode == "custom":
self.write = self._write_custom
cfmt = options.get("content-format") or options.get("format")
+ if isinstance(cfmt, list):
+ cfmt = "\n".join(cfmt) + "\n"
self.contentfmt = util.Formatter(cfmt).format_map
ext = "txt"
elif mode == "tags":