From 27401052a4dcc8cdbb900123d96a3e385bed754b Mon Sep 17 00:00:00 2001 From: Henrik <22085664+henrik9999@users.noreply.github.com> Date: Fri, 14 Oct 2022 22:55:21 +0200 Subject: [PATCH] reaperscans add cloudflareClient (#13847) --- src/en/reaperscans/build.gradle | 2 +- .../kanade/tachiyomi/extension/en/reaperscans/ReaperScans.kt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/en/reaperscans/build.gradle b/src/en/reaperscans/build.gradle index 9973a6312..657cc92d0 100644 --- a/src/en/reaperscans/build.gradle +++ b/src/en/reaperscans/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Reaper Scans' pkgNameSuffix = 'en.reaperscans' extClass = '.ReaperScans' - extVersionCode = 35 + extVersionCode = 36 } apply from: "$rootDir/common.gradle" diff --git a/src/en/reaperscans/src/eu/kanade/tachiyomi/extension/en/reaperscans/ReaperScans.kt b/src/en/reaperscans/src/eu/kanade/tachiyomi/extension/en/reaperscans/ReaperScans.kt index db33e255d..7820ea0bd 100644 --- a/src/en/reaperscans/src/eu/kanade/tachiyomi/extension/en/reaperscans/ReaperScans.kt +++ b/src/en/reaperscans/src/eu/kanade/tachiyomi/extension/en/reaperscans/ReaperScans.kt @@ -19,6 +19,7 @@ import kotlinx.serialization.json.put import kotlinx.serialization.json.putJsonArray import kotlinx.serialization.json.putJsonObject import okhttp3.MediaType.Companion.toMediaTypeOrNull +import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.RequestBody.Companion.toRequestBody import okhttp3.Response @@ -42,6 +43,8 @@ class ReaperScans : ParsedHttpSource() { private val json: Json by injectLazy() + override val client: OkHttpClient = network.cloudflareClient + // Popular override fun popularMangaRequest(page: Int) = GET("$baseUrl/comics?page=$page", headers)