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

[config] allow specifying input file inside the config #6059

Closed
allendema opened this issue Aug 19, 2024 · 4 comments
Closed

[config] allow specifying input file inside the config #6059

allendema opened this issue Aug 19, 2024 · 4 comments

Comments

@allendema
Copy link
Contributor

$ cat ww.json

#
"base-directory": "ww",
"input-files": ["~/urls.txt", "./relative.txt", "file_in_basedir.txt"]
#

So that for each specified file, --input-file $FILE is implied.

gallery-dl --config ww.json

@Hrxn
Copy link
Contributor

Hrxn commented Aug 20, 2024

Uh, what? This is completely backwards.

Besides, simply use a shell script for something like this, automatically calling gallery-dl with different configs, different input files etc. pp.

@allendema
Copy link
Contributor Author

Sure. Its just to conveniently have everything configured in the config file and not a real problem.
Like yt-dlp which allows --batch-file FILE in its config.

@mikf
Copy link
Owner

mikf commented Aug 29, 2024

I've added a global input-files option (b46169c). Is this good enough? Should I change anything?

edit:

Additional# input files.

@allendema
Copy link
Contributor Author

No changes needed, it does everything nicely.
Thanks. 🤖

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

3 participants