Update ToonGod (#13493)

Use normal headers for imageRequest. Referer for images is baseURL.
This commit is contained in:
happywillow0 2022-09-19 09:38:37 -04:00 committed by GitHub
parent 97b14e8bfa
commit dd7266ca17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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)
}
}

View File

@ -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),