gallery-dl icon indicating copy to clipboard operation
gallery-dl copied to clipboard

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

Open Lagicrus opened this issue 6 months ago • 2 comments

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

Lagicrus avatar Feb 01 '24 21:02 Lagicrus

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

Hrxn avatar Feb 02 '24 17:02 Hrxn

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

  • You've been using it from the start
  • You don't delete items which would make the archive out-of-date That and I am not so sure it would still count for the whole "any file ext" use case

Lagicrus avatar Feb 04 '24 14:02 Lagicrus