Route Cloudflare challenges to FlareSolverr on cumlouder and hypnotube raw paths

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MUYdCh2nCVsQYgJAT7gwSi
This commit is contained in:
Simon
2026-10-10 11:59:42 +00:00
parent 2addcc2e7c
commit af6674b4ed
4 changed files with 83 additions and 14 deletions

View File

@@ -87,7 +87,7 @@ impl Requester {
}
}
fn remembered_flaresolverr_user_agent(url: &str) -> Option<String> {
pub(crate) fn remembered_flaresolverr_user_agent(url: &str) -> Option<String> {
let host = Self::host_key(url)?;
Self::flaresolverr_user_agents()
.read()
@@ -218,7 +218,7 @@ impl Requester {
.unwrap_or_else(|| "none".to_string())
}
fn looks_like_cloudflare_challenge(body: &str) -> bool {
pub(crate) fn looks_like_cloudflare_challenge(body: &str) -> bool {
body.contains("Just a moment...")
|| body.contains("cf-turnstile-response")
|| body.contains("Enable JavaScript and cookies to continue")