mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-24 13:48:55 +03:00
FIx Batoto issues with logging in and loading lists/pages. (#1088)
This commit is contained in:
parent
34eb1331a3
commit
80fd49d60b
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,7 @@ import eu.kanade.tachiyomi.util.asJsoup
|
|||
import eu.kanade.tachiyomi.util.selectText
|
||||
import okhttp3.FormBody
|
||||
import okhttp3.HttpUrl
|
||||
import okhttp3.OkHttpClient
|
||||
import okhttp3.Request
|
||||
import okhttp3.Response
|
||||
import org.jsoup.nodes.Document
|
||||
|
@ -48,6 +49,8 @@ class Batoto : ParsedHttpSource(), LoginSource {
|
|||
|
||||
private val staffNotice = Pattern.compile("=+Batoto Staff Notice=+([^=]+)==+", Pattern.CASE_INSENSITIVE)
|
||||
|
||||
override val client: OkHttpClient = network.cloudflareClient
|
||||
|
||||
override fun headersBuilder() = super.headersBuilder()
|
||||
.add("Cookie", "lang_option=English")
|
||||
|
||||
|
|
Loading…
Reference in a new issue