From 19a1dd91332499fa712bec23efd2d53062cfeeb9 Mon Sep 17 00:00:00 2001 From: beerpsi <92439990+beerpiss@users.noreply.github.com> Date: Sun, 21 Jan 2024 13:40:06 +0700 Subject: [PATCH] Shinigami: Fix chapter URL selector (#437) --- multisrc/overrides/madara/shinigami/src/Shinigami.kt | 2 ++ .../java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/multisrc/overrides/madara/shinigami/src/Shinigami.kt b/multisrc/overrides/madara/shinigami/src/Shinigami.kt index d44090147..cde2db40d 100644 --- a/multisrc/overrides/madara/shinigami/src/Shinigami.kt +++ b/multisrc/overrides/madara/shinigami/src/Shinigami.kt @@ -51,6 +51,8 @@ class Shinigami : Madara("Shinigami", "https://shinigamitoon.com", "id") { // Tags are useless as they are just SEO keywords. override val mangaDetailsSelectorTag = "" + override val chapterUrlSelector = "a:not([href*=troll-page])" + override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply { val urlElement = element.selectFirst(chapterUrlSelector)!! diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt index 988c906bf..049e3719d 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt @@ -442,7 +442,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Shayami", "https://shayami.com", "es"), SingleLang("Shiba Manga", "https://shibamanga.com", "en"), SingleLang("Shield Manga", "https://shieldmanga.io", "en", overrideVersionCode = 3), - SingleLang("Shinigami", "https://shinigamitoon.com", "id", overrideVersionCode = 12), + SingleLang("Shinigami", "https://shinigamitoon.com", "id", overrideVersionCode = 13), SingleLang("Shooting Star Scans", "https://shootingstarscans.com", "en"), SingleLang("ShoujoHearts", "https://shoujohearts.com", "en", overrideVersionCode = 2), SingleLang("Sinensis Scan", "https://sinensisscan.net", "pt-BR", pkgName = "sinensis", overrideVersionCode = 6),