-
-
Notifications
You must be signed in to change notification settings - Fork 950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--write-metadata shouldn't override metadata options in configuration file #678
Comments
Uh, no, that's basically how all CLI programs behave. If you have set the same option (i.e. |
Of course, but this holds if the option on CL and the one in the config file are the same. The problem here is that |
Well, it's not, or at least that's not how it's implemented. What you could do is define your metadata settings in a secondary config file and only load it with metadata.conf
-------------
{ "postprocessors": [
{
"name": "metadata",
"other": "settings"
}
] } $ gallery-dl -c metadata.conf URL |
Uhm, are there other global "switch" options that behave in this way? If If you want to keep this behaviour instead, I think it should be documented in docs/configuration.rst and in the man page (I can try to come up with a patch). |
Yes, almost all of them. It usually makes sense for "simple" values like HTTP timeouts, proxy servers, etc. that a command-line switch takes precedence over a config setting, but for complex/composite stuff like a list of post processor objects it does seem weird, I agree. I'll see if I can improve the current documentation, but I'd also gladly accept a patch from you. |
I guess this issue can be closed |
I have set metadata options in my configuration file so that gallery-dl always downloads metadata in a custom directory, and it works OK.
However, if by mistake I also add
--write-metadata
on the command line, it seems that options in the configuration files are ignored; especially: metadata are not written anymore in my custom directory but in the default directory (=the same where images are saved).The text was updated successfully, but these errors were encountered: