From 1264fc518b276b5caecc2cf45b90029acbd59ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 15 Nov 2024 21:15:00 +0100 Subject: [PATCH] allow 'postprocessors' to be a single dict/str do not require it to be a list with just one element "postprocessors": "metadata" "postprocessors": {"name": "metadata"} --- gallery_dl/job.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gallery_dl/job.py b/gallery_dl/job.py index f58cc05d..be244279 100644 --- a/gallery_dl/job.py +++ b/gallery_dl/job.py @@ -619,6 +619,8 @@ class DownloadJob(Job): pp_opts = cfg("postprocessor-options") pp_list = [] + if isinstance(postprocessors, (dict, str)): + postprocessors = (postprocessors,) for pp_dict in postprocessors: if isinstance(pp_dict, str): pp_dict = pp_conf.get(pp_dict) or {"name": pp_dict}