From 56927927c86bcc77bab77d364a1f195f38756074 Mon Sep 17 00:00:00 2001 From: inorichi Date: Wed, 6 Jun 2018 12:42:57 +0200 Subject: [PATCH] =?UTF-8?q?Update=20user=20agent=20on=20kissmanga=20=C2=AF?= =?UTF-8?q?\=5F(=E3=83=84)=5F/=C2=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 1 + .../eu/kanade/tachiyomi/source/online/english/Kissmanga.kt | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 4c064f491..a0128b004 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -206,6 +206,7 @@ dependencies { implementation "com.github.inorichi.Conductor:conductor:be8b3c5" implementation ("com.bluelinelabs:conductor-support:2.1.5-SNAPSHOT") { exclude group: "com.bluelinelabs", module: "conductor" + exclude group: "com.android.support" } implementation 'com.github.inorichi:conductor-support-preference:27.0.2' diff --git a/app/src/main/java/eu/kanade/tachiyomi/source/online/english/Kissmanga.kt b/app/src/main/java/eu/kanade/tachiyomi/source/online/english/Kissmanga.kt index ae5669f4c..0287c1fb5 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/source/online/english/Kissmanga.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/source/online/english/Kissmanga.kt @@ -6,6 +6,7 @@ import eu.kanade.tachiyomi.network.POST import eu.kanade.tachiyomi.source.model.* import eu.kanade.tachiyomi.source.online.ParsedHttpSource import okhttp3.FormBody +import okhttp3.Headers import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.Response @@ -29,6 +30,11 @@ class Kissmanga : ParsedHttpSource() { override val client: OkHttpClient = network.cloudflareClient + override fun headersBuilder(): Headers.Builder { + return Headers.Builder() + .add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; WOW64) Gecko/20100101 Firefox/60") + } + override fun popularMangaSelector() = "table.listing tr:gt(1)" override fun latestUpdatesSelector() = "table.listing tr:gt(1)"