mikf / gallery-dl

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

Imagefap files name issue. #1146

Closed junomarian closed 3 years ago

junomarian commented 3 years ago

NSFW:

https://www.imagefap.com/pictures/2564859/Manga-scans

The first image on this gallery is 15.jpg, but gallery-dl downloaded first file as imagefap_2564859_147819632.jpg Is it possible to maintain those names from webpage? I simply used $ gallery-dl https://www.imagefap.com/pictures/2564859/Manga-scans

mikf commented 3 years ago

This isn't really possible, I'm afraid. gallery-dl uses sites like https://www.imagefap.com/photo/147819632/?gid=2564859&idx=0&partial=true to get full resolution images in bulk, but those don't include the original filename. Of course it could theoretically use a different method of getting image URLs, but that would require (a lot) more HTTP requests and imagefap is rather quick at handing out CAPTCHAs (#1140)