Skip to content

Commit

Permalink
Use a session with flaresolverr (#853)
Browse files Browse the repository at this point in the history
Signed-off-by: Chance Zibolski <[email protected]>
  • Loading branch information
chancez authored Jan 25, 2024
1 parent 02296f1 commit 9109d1c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ object CFClearance {
val cmd: String,
val url: String,
val maxTimeout: Int? = null,
val session: List<String>? = null,
val session: String? = null,
@SerialName("session_ttl_minutes")
val sessionTtlMinutes: Int? = null,
val cookies: List<FlareSolverCookie>? = null,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9109d1c

Please sign in to comment.