-
-
Notifications
You must be signed in to change notification settings - Fork 951
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
[Enhancement] Allow checking for alternate filenames to prevent changing extractor.*.filename
resulting in redownloading everything
#1673
Comments
Uh.. this sounds horribly complicated. Maybe I'm just misunderstanding something. But please, whatever the details, I strongly suggest to use the archive file feature in any way. The whole point of the archive is to avoid any redownloads, regardless of any changes to the directory structure, filename settings, or the file data itself. For metadata (depends significantly on what gets provided by the site, of course), simply use the metadata postprocessor. You can set this at the base level in your config file, like in the example. "postprocessors": [
{
"name" : "zip",
"compression": "store",
"extension" : "cbz",
"filter" : "extension not in ('zip', 'rar')",
"whitelist" : ["mangadex", "exhentai", "nhentai"]
},
{
"name": "metadata",
"whitelist": ["danbooru", "yandere", "sankaku"],
"mode": "custom"
}
], Turn on the Additional options for the Might be of interest for you: To format the metadata to whatever you like.. There's one more thing: Most underrated feature, if I may say so 😄
Not sure what you are trying to do exactly, but there are already dozens of decent mass-renamer programs out there. |
Basically if I try to download [this tweet] with the following config, it'll first check if {
"extractor":{
"twitter":{
"filename":"twitter-{author[name]}-{tweet_id}-{num}.{extension}",
"duplicate-check-better-name-pending":["{author[name]}-{tweet_id}-{num}.{extension}""]
}
}
} The mass-renamer would look through every metadata JSON file in a Personally these are much more convenient and user-friendly than archives, other renaming programs, and/or making your own reamer (as I've done and do not recommend) Come to think of it these could be merged into one option |
That sounds like something you could accomplish with a script or like Hrxn said one of the bulk-renaming programs. If you use an archive file, you're free to rename the downloads however you want. You can even move or delete them, they won't be redownloaded (with |
isnt there a way to add another column where you put the filename on the archive database, so when it sees that the file is downloaded but the filename is different (by comparing the filename stored on the archive against with the newly generated one), it just renames the file already on the computer while also storing it on the archive?
the compare isnt necessary cuz it would just rename to itself without it, it would just add complexity |
Sometimes people change the name files are saved with and don't want to change all the file names and/or redownload everything
So if your config starts as
then changes to
you won't redownload all the images. Granted you'll need to check the directory but maybe you could do
["twitter/{author}/..."]
Ideally you'd save all the metadata and use that to rename the files (and hope to god you didn't mess it up again), but if you're lazy and/or don't have the metadata this'd be useful
Actually while I'm at it, can we get a mass-renamer option for if we have the metadata? Something like
--mass-rename [oldconfig.json] newconfig.json ./gallery-dl
?The text was updated successfully, but these errors were encountered: