imgbrd-grabber icon indicating copy to clipboard operation
imgbrd-grabber copied to clipboard

NHentai model hostname corrected.

Open Erquint opened this issue 11 months ago • 2 comments

Valid hostnames are:

i1.nhentai.net
i2.nhentai.net
i3.nhentai.net
i4.nhentai.net

t1.nhentai.net
t2.nhentai.net
t3.nhentai.net
t4.nhentai.net

Haven't looked into the code much yet, but I don't suppose you support checking availability of multiple CDN-like endpoints. Otherwise, could add all as mirrors and try each until found.

Erquint avatar Apr 30 '25 21:04 Erquint

Realized you've already done that on develop branch. Feel free to close. Consider supporting multiple CDN subdomains for round-robin load balancing and availability redundancy.

Erquint avatar May 02 '25 00:05 Erquint

Indeed, I did a similar fix on the develop branch.

The idea of doing a round-robin (or simply picking one at random with something like Math.floor(Math.random() * 4) + 1) is a good one, however! Although last time when I was working on the fix, I noticed that the 1 servers didn't have the latest images, hence why I settled with the highest 4 ones. Not quite sure what's up with that.

Bionus avatar May 08 '25 23:05 Bionus