Skip to content

NHentai Cloudflare breaks downloader/metadata plugins #48

@doublewelp

Description

@doublewelp

I've been receiving "No matching download handler found for url https://nhentai.net" errors even after installing both plugins. After messing around with the downloader to make it log the response content, I figured it out.

NHentai enabled Cloudflare some time ago and this breaks both NHentai plugins - the requests receive a 503 response with the Cloudflare "please wait" screen. I think this could be improved in two ways:

  • the logging output for plugins should be more specific: HTTP error codes and messages would help diagnose issues;
  • I'm not familiar enough with Python or Cloudflare to figure out a proper fix, but I figure it should be done at the hpx.command.SingleGETRequest().request level. Some way to trick Cloudflare into believing that it's a real browser doing the interaction?

I've attached both of the edited plugins for anyone who encounters the same problem. This isn't really a fix since the cf_clearance cookie will eventually expire and this forces you to continue editing the plugins. @twiddli , thank you for making this, it's a great piece of software and nothing I've used so far is even close.

nh plugins.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions