diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index 5333c4783..96f71d111 100644 --- a/src/all/mangadex/build.gradle +++ b/src/all/mangadex/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: MangaDex' pkgNameSuffix = 'all.mangadex' extClass = '.MangadexFactory' - extVersionCode = 79 + extVersionCode = 80 libVersion = '1.2' } diff --git a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt index f09077f6b..62ede99d4 100644 --- a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt +++ b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt @@ -48,16 +48,15 @@ abstract class Mangadex( private val rateLimitInterceptor = RateLimitInterceptor(4) - override val client: OkHttpClient = network.cloudflareClient.newBuilder() + override val client: OkHttpClient = network.client.newBuilder() .addNetworkInterceptor(rateLimitInterceptor) .build() private fun clientBuilder(): OkHttpClient = clientBuilder(getShowR18()) - private fun clientBuilder(r18Toggle: Int): OkHttpClient = network.cloudflareClient.newBuilder() + private fun clientBuilder(r18Toggle: Int): OkHttpClient = client.newBuilder() .connectTimeout(10, TimeUnit.SECONDS) .readTimeout(30, TimeUnit.SECONDS) - .addNetworkInterceptor(rateLimitInterceptor) .addNetworkInterceptor { chain -> val originalCookies = chain.request().header("Cookie") ?: "" val newReq = chain