Update user agent on kissmanga ¯\_(ツ)_/¯
This commit is contained in:
parent
cba806e39c
commit
eebd3730c3
|
@ -5,8 +5,8 @@ ext {
|
|||
appName = 'Tachiyomi: Kissmanga'
|
||||
pkgNameSuffix = "en.kissmanga"
|
||||
extClass = '.Kissmanga'
|
||||
extVersionCode = 6
|
||||
extVersionSuffix = 3
|
||||
extVersionCode = 7
|
||||
extVersionSuffix = 4
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
@ -28,6 +29,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)"
|
||||
|
|
Loading…
Reference in New Issue