Skip to content
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

[Configuration]Options and Configurations priority question #5572

Closed
maplestory03 opened this issue May 9, 2024 · 1 comment
Closed

[Configuration]Options and Configurations priority question #5572

maplestory03 opened this issue May 9, 2024 · 1 comment

Comments

@maplestory03
Copy link

maplestory03 commented May 9, 2024

gallery-dl.conf (in the same directory as said executable)
-c like1.conf -c like2.conf (conf file but not named gallery-dl.conf and more than one)
for example
【gallery-dl -c ./like1.conf -c ./like2.conf url】
what the order of priority from highest to lowest ?

first read the content of gallery-dl.conf and then merge like1.conf?
If there is a duplicate between like1.conf and gallery-dl.conf, will based on latter(like1.conf)
and then merge like2.conf. If there is a duplicate with the previous one, will based on latter(like2.conf)

another question
Is the priority of an option higher whether written before or after - c
for example
【gallery-dl -C ./cookie.txt -c ./like.conf url】 or 【gallery-dl -c ./like.conf -C ./cookie.txt url】or 【gallery-dl -c ./like.conf -C ./cookie.txt -c ./like2.conf url】
these 3 ways will also use cookie.txt instead of like.conf's and like2.conf's cookiefile?

@mikf
Copy link
Owner

mikf commented May 9, 2024

first read the content of gallery-dl.conf and then merge like1.conf?
If there is a duplicate between like1.conf and gallery-dl.conf, will based on latter(like1.conf)
and then merge like2.conf. If there is a duplicate with the previous one, will based on latter(like2.conf)

Yes to all 3.

Is the priority of an option higher whether written before or after - c

Command-line options like -C will always override config file options, regardless of their order.

these 3 ways will also use cookie.txt instead of like.conf's and like2.conf's cookiefile?

Correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants