mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +01:00
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"}
This commit is contained in:
parent
c82f3db098
commit
1264fc518b
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user