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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user