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

[Feature Request] Better handling of variables in archive paths #2597

Closed
diamondsw opened this issue May 15, 2022 · 1 comment
Closed

[Feature Request] Better handling of variables in archive paths #2597

diamondsw opened this issue May 15, 2022 · 1 comment

Comments

@diamondsw
Copy link

The download-archive directive (or archive variable in a conf file - why are these named differently?) always fails if any variables are used in its path (for instance, if you want to keep archive db's in artist or manga folders when downloading from mangadex), as the folder is not created until after the first image is downloaded.

For instance, the following option will always fail for the first chapter since it looks for the DB path to exist before downloading, but once the first image is downloaded, the path now exists for all subsequent chapters. This means, however, that the command must be run twice to have everything in the archive.

--download-archive '~/Downloads/[{author[0]}] {manga}/archive.db'

Would it be possible to add a flag to create the path if it doesn't exist, utilizing any variables from the download session?

@diamondsw diamondsw changed the title [Feature Request] [Feature Request] Better handling of variables in archive paths May 15, 2022
@mikf
Copy link
Owner

mikf commented May 17, 2022

why are these named differently?

This feature was meant to more or less copy youtube-dl's --download-archive, and config file option names are usually just one word.

as the folder is not created until after the first image is downloaded.

Should be fixed with a96f9d2.

@mikf mikf closed this as completed May 27, 2022
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