add '--write-infojson' command-line option

This commit is contained in:
Mike Fährmann
2021-09-23 17:58:40 +02:00
parent a23f5d45d7
commit 1cc73e11aa

View File

@@ -371,6 +371,16 @@ def build_parser():
action="append_const", const="metadata",
help="Write metadata to separate JSON files",
)
postprocessor.add_argument(
"--write-infojson",
dest="postprocessors",
action="append_const", const={
"name" : "metadata",
"event" : "init",
"filename": "info.json",
},
help="Write gallery metadata to a info.json file",
)
postprocessor.add_argument(
"--write-tags",
dest="postprocessors",