MangaTale: fix null error (#602)

closes #596
cant reproduce the images issue. probably site issue
This commit is contained in:
Luqman 2024-01-25 13:04:49 +07:00 committed by GitHub
parent 9993a552c3
commit 7d9b9cce91
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package eu.kanade.tachiyomi.extension.id.mangatale
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.OkHttpClient
import org.jsoup.nodes.Document
class MangaTale : MangaThemesia("MangaTale", "https://mangatale.co", "id") {
@ -11,4 +12,8 @@ class MangaTale : MangaThemesia("MangaTale", "https://mangatale.co", "id") {
.build()
override val seriesTitleSelector = ".ts-breadcrumb li:last-child span"
override fun mangaDetailsParse(document: Document) = super.mangaDetailsParse(document).apply {
thumbnail_url = document.selectFirst(seriesThumbnailSelector)?.imgAttr()
}
}

View File

@ -88,7 +88,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
SingleLang("MangaShiro", "https://mangashiro.me", "id"),
SingleLang("Mangasusu", "https://mangasusuku.xyz", "id", isNsfw = true, overrideVersionCode = 3),
SingleLang("MangaSwat", "https://goldragon.me", "ar", overrideVersionCode = 15),
SingleLang("MangaTale", "https://mangatale.co", "id", overrideVersionCode = 1),
SingleLang("MangaTale", "https://mangatale.co", "id", overrideVersionCode = 2),
SingleLang("MangaWT", "https://mangawt.com", "tr", overrideVersionCode = 5),
SingleLang("Mangayaro", "https://www.mangayaro.id", "id", overrideVersionCode = 1),
SingleLang("Mangás Chan", "https://mangaschan.net", "pt-BR", className = "MangasChan", overrideVersionCode = 2),