mikf / gallery-dl

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

Does this handle exhentai.org galleries that have been replaced? #6119

Open silentdragon14 opened 1 week ago

silentdragon14 commented 1 week ago

Does gallery-dl detect when the Visibily becomes "No (Replaced)" and a link is provided to a new replacement gallery? It would be ideal if it followed the link and downloaded the latest gallery.

a84r7a3rga76fg commented 1 week ago

The program can generate a metadata file of the gallery before any image file has been downloaded. If the keys current_gid and current_key exist, it means the gallery has been updated, and you can use those keys to construct the URL of the updated gallery. https:://exhentai.org/g/current_gid/current_key/.

You could enable postprocessor and modify this this to make the program stop if the gallery was updated.

silentdragon14 commented 1 week ago

I'm afraid you've really lost me. How do I add logic to create and check a metadata file and act accordingly?