how to format a filenaming if/else option within a postprocessor? #4078
-
After figuring out that the problem I was having with gallery-dl downloading text replies in spite of my image-filter was due to the Currently, it looks like this:
However, I'm having a problem: the postprocessor is erroring due to my filenaming if/else. For context, it's the same if/else filenaming option I have on the twitter exctractor itself (with The if/else works fine in the twitter extractor itself obviously, but with the version in the postprocessor, when I try to download a twitter url the postprocessor errors out and gives me the error |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
metadata.filename expects a string not a dict. Create two PPs: 1: Filter |
Beta Was this translation helpful? Give feedback.
metadata.filename expects a string not a dict.
https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#metadatafilename
Create two PPs:
1: Filter
retweet_id in locals()
and use a string as filename.2: FIlter
retweet_id not in locals()
and use a string as filename.