mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.43k stars 934 forks source link

Enhancement - Skip downloading an image if the file name matches excluding the file extension #5147

Open Lagicrus opened 7 months ago

Lagicrus commented 7 months ago

Is it possible to add a feature or flag that would skip downloading a file if the file name to download matches a file name that already exists but ignores it if the file extension matches? I've run into this issue recently as I've run an image optimizer/shrinker to save space, which changes the file extensions from .jpg to .avif But when I rerun gallery-dl over the source, it starts downloading all the already downloaded files, just converted to a new file extension.

i.e. it would download test-image_1.jpg even though test-image_1.avif existed

Hrxn commented 7 months ago

Well, that's one way to do it, but you should seriously consider using the "archive" option.

Lagicrus commented 7 months ago

True, but if I am not mistaken, the archive option only works if