-
-
Notifications
You must be signed in to change notification settings - Fork 995
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
Rename file if exist #306
Comments
Hello rEnr3n,
rEnr3n writes:
Please add option to rename file if it already exists.
Can you please elaborate further?
I.e. most files fetched by gallery-dl should be unique and that's often
used as a way to avoid refetching them. :)
|
I usually download using
|
Ah, so you're using gallery-dl like some kind of download manager, like wget? It's certainly possible, although a bit pointless, maybe. We can't rely on any unique Eventually the directlink-extractor could be extended to generate randomized unique-y names here. The |
Doesn’t gallery-dl add a _1 to duplicates? |
i'm usually using it with this config, so it more like wget "directlink": |
|
Nice, thanks. Small suggestion: how about adding the numeric suffix between the filename and the file extension, i.e. something like..
instead of
That's what wget does, correct, but in my opinion that wget behaviour is a bit stupid 😄 |
Yeah, you're right. Having files with At first I actually wanted to implement it like you're suggesting by modifying a file's |
- change 'has_extension' from a simple flag/bool to a field that contains the original filename extension - rename 'keywords' to 'kwdict' and some other stuff as well - inline 'adjust_path()' - put enumeration index before filename extension (#306)
Please add option to rename file if it already exists.
The text was updated successfully, but these errors were encountered: