From a3c19fbc23c7550237b6a3f0c41f46da6946c467 Mon Sep 17 00:00:00 2001 From: happywillow0 <45346080+happywillow0@users.noreply.github.com> Date: Tue, 23 Aug 2022 15:04:24 -0400 Subject: [PATCH] MangaThemesia Fixes (#13156) * Fix ManhwaList Fixes #13143 Adds additional jsoup selector to pageSelector * Fix ManhwaDesu Fixes #13132 Updates mangaUrlDirectory * Fixes ManhwaLand.mom Fixes #13120 Updates mangaUrlDirectory --- .../overrides/mangathemesia/manhwadesu/src/ManhwaDesu.kt | 2 +- .../mangathemesia/manhwalandmom/src/ManhwaLandMom.kt | 2 +- .../overrides/mangathemesia/manhwalist/src/ManhwaList.kt | 2 ++ .../multisrc/mangathemesia/MangaThemesiaGenerator.kt | 6 +++--- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/multisrc/overrides/mangathemesia/manhwadesu/src/ManhwaDesu.kt b/multisrc/overrides/mangathemesia/manhwadesu/src/ManhwaDesu.kt index 5a47c98d8..5009c83f4 100644 --- a/multisrc/overrides/mangathemesia/manhwadesu/src/ManhwaDesu.kt +++ b/multisrc/overrides/mangathemesia/manhwadesu/src/ManhwaDesu.kt @@ -5,7 +5,7 @@ import eu.kanade.tachiyomi.network.interceptor.rateLimit import okhttp3.OkHttpClient import java.util.concurrent.TimeUnit -class ManhwaDesu : MangaThemesia("ManhwaDesu", "https://manhwadesu.me", "id") { +class ManhwaDesu : MangaThemesia("ManhwaDesu", "https://manhwadesu.me", "id", "/komik") { override val client: OkHttpClient = network.cloudflareClient.newBuilder() .connectTimeout(10, TimeUnit.SECONDS) diff --git a/multisrc/overrides/mangathemesia/manhwalandmom/src/ManhwaLandMom.kt b/multisrc/overrides/mangathemesia/manhwalandmom/src/ManhwaLandMom.kt index 0487124c9..10eddcd99 100644 --- a/multisrc/overrides/mangathemesia/manhwalandmom/src/ManhwaLandMom.kt +++ b/multisrc/overrides/mangathemesia/manhwalandmom/src/ManhwaLandMom.kt @@ -5,7 +5,7 @@ import eu.kanade.tachiyomi.network.interceptor.rateLimit import okhttp3.OkHttpClient import java.util.concurrent.TimeUnit -class ManhwaLandMom : MangaThemesia("ManhwaLand.mom", "https://manhwaland.mom", "id") { +class ManhwaLandMom : MangaThemesia("ManhwaLand.mom", "https://manhwaland.mom", "id", "/series") { override val client: OkHttpClient = network.cloudflareClient.newBuilder() .connectTimeout(10, TimeUnit.SECONDS) diff --git a/multisrc/overrides/mangathemesia/manhwalist/src/ManhwaList.kt b/multisrc/overrides/mangathemesia/manhwalist/src/ManhwaList.kt index 8b1bca6ea..5a65fd06b 100644 --- a/multisrc/overrides/mangathemesia/manhwalist/src/ManhwaList.kt +++ b/multisrc/overrides/mangathemesia/manhwalist/src/ManhwaList.kt @@ -14,4 +14,6 @@ class ManhwaList : MangaThemesia("ManhwaList", "https://manhwalist.com", "id") { .build() override val hasProjectPage = true + + override val pageSelector = "div#readerarea img.jetpack-lazy-image" } 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 fdbe49122..6d5c299d9 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 @@ -58,10 +58,10 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { SingleLang("MangKomik", "https://mangkomik.com", "id"), SingleLang("Mangás Chan", "https://mangaschan.com", "pt-BR", className = "MangasChan"), SingleLang("Manhua Raw", "https://manhuaraw.com", "en"), - SingleLang("ManhwaDesu", "https://manhwadesu.me", "id", isNsfw = true), + SingleLang("ManhwaDesu", "https://manhwadesu.me", "id", isNsfw = true, overrideVersionCode = 1), SingleLang("ManhwaIndo", "https://manhwaindo.id", "id", isNsfw = true, overrideVersionCode = 2), - SingleLang("ManhwaLand.mom", "https://manhwaland.mom", "id", isNsfw = true, className = "ManhwaLandMom"), - SingleLang("ManhwaList", "https://manhwalist.com", "id"), + SingleLang("ManhwaLand.mom", "https://manhwaland.mom", "id", isNsfw = true, className = "ManhwaLandMom", overrideVersionCode = 1), + SingleLang("ManhwaList", "https://manhwalist.com", "id", overrideVersionCode = 1), SingleLang("Manhwax", "https://manhwax.com", "en", isNsfw = true), SingleLang("Mareceh", "https://mareceh.com", "id", isNsfw = true, pkgName = "mangceh", overrideVersionCode = 10), SingleLang("Martial Manga", "https://martialmanga.com", "es"),