Browse Source

Use Cloudflare client for ReadManga.Today (#363)

Lennart Weller 8 năm trước cách đây
mục cha
commit
3ee5774870

+ 3 - 0
app/src/main/java/eu/kanade/tachiyomi/data/source/online/english/Readmangatoday.kt

@@ -9,6 +9,7 @@ import eu.kanade.tachiyomi.data.source.Language
 import eu.kanade.tachiyomi.data.source.model.MangasPage
 import eu.kanade.tachiyomi.data.source.model.Page
 import eu.kanade.tachiyomi.data.source.online.ParsedOnlineSource
+import okhttp3.OkHttpClient
 import okhttp3.Request
 import org.jsoup.nodes.Document
 import org.jsoup.nodes.Element
@@ -22,6 +23,8 @@ class Readmangatoday(context: Context, override val id: Int) : ParsedOnlineSourc
 
     override val lang: Language get() = EN
 
+    override val client: OkHttpClient get() = network.cloudflareClient
+
     override fun popularMangaInitialUrl() = "$baseUrl/hot-manga/"
 
     override fun popularMangaSelector() = "div.hot-manga > div.style-list > div.box"