From 816133a4a8845c6d6bb2418ee4acd1e85b87bf31 Mon Sep 17 00:00:00 2001 From: Creepler13 Date: Tue, 3 Dec 2024 14:24:48 +0100 Subject: [PATCH] Fix SirenKomik (#6433) * "Deactivate Html img search" * Verison * Change selector and add explanation --- src/id/mangkomik/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/id/mangkomik/SirenKomik.kt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/id/mangkomik/build.gradle b/src/id/mangkomik/build.gradle index 5016245ca..742d2dce4 100644 --- a/src/id/mangkomik/build.gradle +++ b/src/id/mangkomik/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.SirenKomik' themePkg = 'mangathemesia' baseUrl = 'https://sirenkomik.my.id' - overrideVersionCode = 4 + overrideVersionCode = 5 } apply from: "$rootDir/common.gradle" diff --git a/src/id/mangkomik/src/eu/kanade/tachiyomi/extension/id/mangkomik/SirenKomik.kt b/src/id/mangkomik/src/eu/kanade/tachiyomi/extension/id/mangkomik/SirenKomik.kt index 2b1861855..840768cbf 100644 --- a/src/id/mangkomik/src/eu/kanade/tachiyomi/extension/id/mangkomik/SirenKomik.kt +++ b/src/id/mangkomik/src/eu/kanade/tachiyomi/extension/id/mangkomik/SirenKomik.kt @@ -27,6 +27,9 @@ class SirenKomik : MangaThemesia( override fun chapterListSelector() = ".list-chapter a" + // Overridden since MangeThemesia doesn't search for jsonData in script tags, because it finds the bait images with the default selector + override val pageSelector: String = ":not(*)" + override fun chapterFromElement(element: Element) = SChapter.create().apply { name = element.selectFirst(".nomer-chapter")!!.text() date_upload = element.selectFirst(".tgl-chapter")?.text().parseChapterDate()