diff --git a/src/all/cubari/build.gradle b/src/all/cubari/build.gradle index 14d886e9..e588c17d 100644 --- a/src/all/cubari/build.gradle +++ b/src/all/cubari/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Cubari' pkgNameSuffix = "all.cubari" extClass = '.CubariFactory' - extVersionCode = 23 + extVersionCode = 24 } apply from: "$rootDir/common.gradle" diff --git a/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt b/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt index 29465701..4f013141 100644 --- a/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt +++ b/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt @@ -38,6 +38,16 @@ open class Cubari(override val lang: String) : HttpSource() { private val json: Json by injectLazy() + override val client = super.client.newBuilder() + .addInterceptor { chain -> + val request = chain.request() + val headers = request.headers.newBuilder() + .removeAll("Accept-Encoding") + .build() + chain.proceed(request.newBuilder().headers(headers).build()) + } + .build() + override fun headersBuilder() = Headers.Builder().apply { add( "User-Agent",