mikf / gallery-dl

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

[kemono.party] Posts with files names duplicate #1402

Closed lodx-xd closed 3 years ago

lodx-xd commented 3 years ago

Some galleries like this one (NSFW) https://kemono.party/fanbox/user/9016 have posts files with the same name but they are different images, well, kinda... the first one is like a banner cropped from the "true" image that is the next in the post (so two Untitled.jpg files) because of this the gallery is downloaded incomplete, it downloads only the first one and skips the second one since they have the same file name.

Is there any way to download both images even if it renamed the second one or replace the first one for the second one in the queue, because what really matters is the second image in the queue that is complete. Thanks in advance.

mikf commented 3 years ago

You could add an enumeration index field to the filename format string. The default is "{id}_{title}_{filename}.{extension}", so -o filenam="{id}_{title}_{num}_{filename}.{extension}" would work. Or you use -o skip=false / --no-skip or -o skip=enumerate to overwrite exiting files or automatically enumerate them.

lodx-xd commented 3 years ago

Thanks, it worked very well.