Dar9586 / NClientV2

An unofficial NHentai android client
Apache License 2.0
1.85k stars 94 forks source link

BUG #402

Open Pelfa opened 2 years ago

Pelfa commented 2 years ago

Hello. I wanted to make this short and clarify the bug easily.. basically it keeps saying no entries found.. Althought i tried to see if its the websites problem its not.. also idk if it has been there before since its been long since i last visited the website but it has a DDoS Protection now The app was working fine just hours ago. I tried fixing the problem by reinstalling/updating the app but the problem stays the same.. i resetted the app, restarted my phone.. doesnt work really.. so i hope u fix this bug... Or maybe time will fix it and my phone is just being dumb right now. Thx!!

Notarin commented 2 years ago

Hi, the title of your issue isn't descriptive at all of your issue, if every bug was named "BUG" nobody would be able to navigate the issues, I almost made my own issue instead of commenting here because I didn't even realize that this was the same issue I'm experiencing, from now on, when making issues, please title them accordingly. A good title would be "No Entries Found"

Notarin commented 2 years ago

Also, I'm having the same issue as well, most likely either the API has been updated, or if the app scrapes, the site itself has been updated.

Notarin commented 2 years ago

This was also mentioned in #386

Notarin commented 2 years ago

If it uses the NHentai NPM API then that appears to be currently down https://github.com/Zekfad/nhentai-api/issues/24 But then again, I have absolutely no idea what API this app uses or if it scrapes or not.

Kinuseka commented 2 years ago

Seems like nhentai added a cloudflare system. So I can guess that this major system upgrade is also interfering with the API hence the downtime.

Magnetogenerator commented 2 years ago

Same issue, a nhentai link cant be opened by NClientV2, on my phone it will do nothing and directly go back to the former app, but it can be opened and load content well by a web browser after a cloudflare check, that is probably where the problem lies.

Notarin commented 2 years ago

After looking through the app, I've found that you can still open your favorites and even download them.

Notarin commented 2 years ago

I've found this online https://www.reddit.com/r/wholesomehentai/comments/t7gf2q/please_read_before_posting_an_nhentai_link/ image This pretty much confirms that the issue is Cloudflare. Apparently the devs of that sub have found a solution, I've sent a message and am awaiting a response

Notarin commented 2 years ago

I've received a response, They've never actually found a solution, they just don't scrape the site anymore.

Kinuseka commented 2 years ago

I've received a response, They've never actually found a solution, they just don't scrape the site anymore.

Seems like they had a private API access. I wonder if they ever consider making it public

Kinuseka commented 2 years ago

I propose a solution; What I found is that the site does not need to reload cloudflare when a browser is deemed legitimate. We can perhaps integrate a browser open it on first boot, and let the cloudflare do its job, and take the session and or cookie/token after the authentication with the integrated browser. The app will now load as normal. If the token/cookie expires we reload with the same technique. I dont know if this abides ToS but the APP only rearranges contents of the website to make it compatible into the mobile viewing. Alternatively we can also wait for the new API to drop. Goodluck

keatit71 commented 2 years ago

Another solution to cloud flare protection or anti-scraping i've seen is using this Program called Flaresolverr. https://github.com/FlareSolverr/FlareSolverr

Kinuseka commented 2 years ago

Another solution to cloud flare protection or anti-scraping i've seen is using this Program called Flaresolverr. https://github.com/FlareSolverr/FlareSolverr

This is pretty much what I said. The existence of this repo might make it easier

keatit71 commented 2 years ago

Flaresolverr is already used to bypass cloudflare restrictions on torrent sites for programs like jackett which is how i found it so it should work well in this regard.

Notarin commented 2 years ago

I'm not sure if anyone has noticed, but it appears that the issue has been solved, app is working normal for me

Notarin commented 2 years ago

I've received a response, They've never actually found a solution, they just don't scrape the site anymore.

Seems like they had a private API access. I wonder if they ever consider making it public

No, they literally just completely stopped scraping the site altogether image

chayleaf commented 2 years ago

https://github.com/Dar9586/NClientV2/pull/428 should fix this

Notarin commented 2 years ago

If this is fixed by #428 and it's now merged, shouldn't this be closed?