From 74ef6efa7b7f513bcfb46ccc3e9255e749932087 Mon Sep 17 00:00:00 2001 From: Buhbbl <93195775+buhbbl@users.noreply.github.com> Date: Tue, 23 Aug 2022 14:56:32 +0200 Subject: [PATCH] Toonily: fix search and filtering (#13142) --- multisrc/overrides/madara/toonily/src/Toonily.kt | 2 ++ .../java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/multisrc/overrides/madara/toonily/src/Toonily.kt b/multisrc/overrides/madara/toonily/src/Toonily.kt index 9fa257cf3..6b3c62153 100644 --- a/multisrc/overrides/madara/toonily/src/Toonily.kt +++ b/multisrc/overrides/madara/toonily/src/Toonily.kt @@ -16,6 +16,8 @@ class Toonily : Madara( override val useNewChapterEndpoint: Boolean = true + override fun searchMangaSelector() = "div.page-item-detail.manga" + override fun parseChapterDate(date: String?): Long { val formattedDate = if (date?.contains("UP") == true) "today" else date return super.parseChapterDate(formattedDate) 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 3d2652c9d..b3ff1e653 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 @@ -452,7 +452,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Todaymic", "https://todaymic.com", "en", overrideVersionCode = 1), SingleLang("TonizuToon", "https://tonizutoon.com", "tr", isNsfw = true), SingleLang("ToonGod", "https://www.toongod.com", "en", isNsfw = true, overrideVersionCode = 2), - SingleLang("Toonily", "https://toonily.com", "en", isNsfw = true, overrideVersionCode = 7), + SingleLang("Toonily", "https://toonily.com", "en", isNsfw = true, overrideVersionCode = 8), SingleLang("Toonily.net", "https://toonily.net", "en", isNsfw = true, className = "Toonilynet", overrideVersionCode = 2), SingleLang("ToonMany", "https://toonmany.com", "en", isNsfw = true), SingleLang("Top Manhua", "https://topmanhua.com", "en", overrideVersionCode = 1),