From 9109d1ca3e67695a6e3ed6d37a9ac322276a51c8 Mon Sep 17 00:00:00 2001 From: Chance Zibolski Date: Wed, 24 Jan 2024 17:44:45 -0800 Subject: [PATCH] Use a session with flaresolverr (#853) Signed-off-by: Chance Zibolski --- .../tachiyomi/network/interceptor/CloudflareInterceptor.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/CloudflareInterceptor.kt b/server/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/CloudflareInterceptor.kt index d9fb36437..68ed1c1a1 100644 --- a/server/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/CloudflareInterceptor.kt +++ b/server/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/CloudflareInterceptor.kt @@ -110,7 +110,7 @@ object CFClearance { val cmd: String, val url: String, val maxTimeout: Int? = null, - val session: List? = null, + val session: String? = null, @SerialName("session_ttl_minutes") val sessionTtlMinutes: Int? = null, val cookies: List? = null, @@ -169,6 +169,8 @@ object CFClearance { FlareSolverRequest( "request.get", originalRequest.url.toString(), + session = "suwayomi", + sessionTtlMinutes = 15, cookies = network.cookieStore.get(originalRequest.url).map { FlareSolverCookie(it.name, it.value)