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

[Exhentai] Display page links for failed downloads #6343

Open tkzv opened 6 days ago

tkzv commented 6 days ago

When you press Ctrl-C during a download, the program displays a message [exhentai][info] Use '...' as input URL to continue downloading from the current position. This is very convenient, since the URLs are impossible to guess, take time to find, and the crawler accesses them by number very slowly.

When a download and both fallback URLs fail (e.g. because of server troubles), the error message only displays the generated downloaded image name: [download][error] Failed to download ....jpg It would be more convenient, if it also displayed the page URLs.

mikf commented 3 days ago

With https://github.com/mikf/gallery-dl/commit/2e1dab3036082ef29a34495020844ac182e623b3 and https://github.com/mikf/gallery-dl/commit/10c56a561d6201e7ce9b076fc09be6b71e565ca2, you'll be able to use

--print "error:https://exhentai.org/s/{image_token}/{gid}-{num}"

to display the image page URLs of failed downloads.

You can something similar with the current gallery-dl version by using a metadata post processor with "filename": "-" and "format": "https://exhentai.org/s/{image_token}/{gid}-{num}".