RipMeApp / ripme

Downloads albums in bulk
MIT License
3.71k stars 629 forks source link

nhentai.net "Non-retriable status code 403 while downloading" error code on all new albums. #1963

Open codeRetard opened 2 years ago

codeRetard commented 2 years ago

Expected Behavior

All the 26 pictures in the album to be downloaded

Actual Behavior

Ripping the album will result in 100% error rate, and no pictures from the album are downloaded. The GUI throws the "Non-retriable status code 403 while downloading" error for each entry in the album. Interestingly this is only applicable to the recently added albums which are showcased under the New Uploads section of the front page of the website. Older albums such as https://nhentai.net/g/765/ "(NSFW)" still download fine with no issues what so ever.

ericty commented 2 years ago

This isn't pretty, but a quick fix:

129c129
<             imageURLs.add(el.attr("data-src").replaceAll("t\\.n", "i.n").replaceAll("t\\.", "."));
---
>             imageURLs.add(el.attr("data-src").replaceAll("https://t([^<]*)\\.nhentai", "https://i$1.nhentai").replaceAll("t\\.", "."));
codeRetard commented 2 years ago

Any chance we might be able to see this, or a better, and more permanent fix for this in an update anytime soon?