Closed qqtpi closed 3 weeks ago
Hello, I'm using a python postprocessor like this:
"postprocessors": [ { "name": "python", "function": "my_file.py:my_function" }
def my_function(kwargs): pass
I would like to pass custom command line args and catch them - for example: gallery-dl "some_site.com" --postprocessor-option "print_tags"=1
gallery-dl "some_site.com" --postprocessor-option "print_tags"=1
def my_function(kwargs): if kwargs["print_tags"]: print(kwargs["tags"])
Is something like this possible?
Kind of. You can use -o keywords.print_tags=1 to add a print_tags value to each metadata dict like kwargs.
-o keywords.print_tags=1
print_tags
kwargs
Hello, I'm using a python postprocessor like this:
I would like to pass custom command line args and catch them - for example:
gallery-dl "some_site.com" --postprocessor-option "print_tags"=1
Is something like this possible?