From 7d9b9cce915fc55c3676029e9ce33f12652c966d Mon Sep 17 00:00:00 2001 From: Luqman <16263232+Riztard@users.noreply.github.com> Date: Thu, 25 Jan 2024 13:04:49 +0700 Subject: [PATCH] MangaTale: fix null error (#602) closes #596 cant reproduce the images issue. probably site issue --- multisrc/overrides/mangathemesia/mangatale/src/MangaTale.kt | 5 +++++ .../multisrc/mangathemesia/MangaThemesiaGenerator.kt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/multisrc/overrides/mangathemesia/mangatale/src/MangaTale.kt b/multisrc/overrides/mangathemesia/mangatale/src/MangaTale.kt index 56b0a9cfc..b6d9a7d0b 100644 --- a/multisrc/overrides/mangathemesia/mangatale/src/MangaTale.kt +++ b/multisrc/overrides/mangathemesia/mangatale/src/MangaTale.kt @@ -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() + } } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt index f5e832f25..3c83fddb1 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt @@ -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),