discord-downloader-go icon indicating copy to clipboard operation
discord-downloader-go copied to clipboard

Feature suggestion: Option (toggle) to prevent redownloading of already-downloaded files

Open Drakonas opened this issue 3 years ago • 2 comments

I am not sure if the "filterDuplicates" setting in the LogLinks section actually addresses this, as I think that's just for logging messages, but correct me if I'm wrong.

It would be nice to have a way for it to allow me to delete/rename certain images in the folder, and not redownload them when I run ddg history all.

A lot of images I am downloading have messed up extensions, but also I am trying to keep duplicates out of my folders, as I have some favorites in a separate folder that come from the same Discord channel, and software I use rely on there being no duplicates.

Thus, I often rename/move them out of the folder to fix these issues... However, if I run ddg history all, the tool just treats them as missing downloads, and redownloads them.

Would there be a way to have the tool prevent downloading files that have already been downloaded? To me, this seems the most straight-forward method, and it would help people with a variety of situations, I feel, and would be beneficial to others that don't have my exact use case.

From a coding perspective, it seems the tool registers that the files are missing and updates the database... maybe this would be as simple as a toggle to prevent it from doing said changes to the database?

Thank you.

Drakonas avatar Aug 09 '22 19:08 Drakonas

"filterDuplicates": true will make it skip any file that matches an existing exact filename (date timestamp included).

Though when a file is fully downloaded, the url is logged in the database and the bot shouldn't attempt to redownload any urls logged there, unless you delete(d) your database folder.

get-got avatar Aug 10 '22 20:08 get-got

Though when a file is fully downloaded, the url is logged in the database and the bot shouldn't attempt to redownload any urls logged there, unless you delete(d) your database folder.

This is not the case. It redownloads any file I delete when I have loglinks not enabled.

I have tested this with 1.6.5 and the latest commit (built myself). I am using Windows 10 64-bit.

"filterDuplicates": true will make it skip any file that matches an existing exact filename (date timestamp included).

That's what I needed to know. Thanks.

Drakonas avatar Aug 11 '22 14:08 Drakonas