Update ToonGod (#13493)
Use normal headers for imageRequest. Referer for images is baseURL.
This commit is contained in:
parent
97b14e8bfa
commit
dd7266ca17
|
@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.extension.en.toongod
|
|||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.source.model.Page
|
||||
import okhttp3.Request
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
@ -11,4 +12,7 @@ class ToonGod : Madara("ToonGod", "https://www.toongod.com", "en", SimpleDateFor
|
|||
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/webtoons/page/$page/?m_orderby=latest", headers)
|
||||
override val mangaSubString = "webtoons"
|
||||
override val useLoadMoreSearch = false
|
||||
override fun imageRequest(page: Page): Request {
|
||||
return GET(page.imageUrl!!, headers)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -439,7 +439,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
|||
SingleLang("Time Naight", "https://timenaight.com", "tr"),
|
||||
SingleLang("Todaymic", "https://todaymic.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("TonizuToon", "https://tonizutoon.com", "tr", isNsfw = true),
|
||||
SingleLang("ToonGod", "https://www.toongod.com", "en", isNsfw = true, overrideVersionCode = 3),
|
||||
SingleLang("ToonGod", "https://www.toongod.com", "en", isNsfw = true, overrideVersionCode = 4),
|
||||
SingleLang("Toonily", "https://toonily.com", "en", isNsfw = true, overrideVersionCode = 8),
|
||||
SingleLang("Toonily.net", "https://toonily.net", "en", isNsfw = true, className = "Toonilynet", overrideVersionCode = 2),
|
||||
SingleLang("ToonMany", "https://toonmany.com", "en", isNsfw = true),
|
||||
|
|
Loading…
Reference in New Issue