From fb799a1f6c11f99669e5dcbc6e8c33298b38b2f7 Mon Sep 17 00:00:00 2001 From: Luqman Date: Thu, 12 Oct 2023 07:02:38 +0700 Subject: [PATCH] CosmicScans.id: Fix Latest (#18488) * CosmicScans.id: Fix Latest Closes #18130 * organize --- .../mangathemesia/cosmicscansid/src/CosmicScansID.kt | 4 ++++ .../multisrc/mangathemesia/MangaThemesiaGenerator.kt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/multisrc/overrides/mangathemesia/cosmicscansid/src/CosmicScansID.kt b/multisrc/overrides/mangathemesia/cosmicscansid/src/CosmicScansID.kt index ffc1a75c3..4df60eb89 100644 --- a/multisrc/overrides/mangathemesia/cosmicscansid/src/CosmicScansID.kt +++ b/multisrc/overrides/mangathemesia/cosmicscansid/src/CosmicScansID.kt @@ -19,6 +19,8 @@ class CosmicScansID : MangaThemesia("CosmicScans.id", "https://cosmicscans.id", override val hasProjectPage = true override val projectPageString = "/semua-komik" + override fun latestUpdatesRequest(page: Int) = GET("$baseUrl" + if (page > 1) "/page/$page" else "", headers) + // search override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { val url = baseUrl.toHttpUrl().newBuilder() @@ -39,6 +41,8 @@ class CosmicScansID : MangaThemesia("CosmicScans.id", "https://cosmicscans.id", return GET(url.toString()) } + override fun searchMangaSelector() = ".bixbox:not(.hothome):has(.hpage) .utao .uta .imgu, .bixbox:not(.hothome) .listupd .bs .bsx" + override fun getFilterList(): FilterList { val filters = mutableListOf>( Filter.Separator(), 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 9036c03e7..5e761023f 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 @@ -28,7 +28,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { SingleLang("Boosei", "https://boosei.net", "id", overrideVersionCode = 2), SingleLang("Cartel de Manhwas", "https://carteldemanhwas.com", "es", overrideVersionCode = 5), SingleLang("Cosmic Scans", "https://cosmicscans.com", "en", overrideVersionCode = 1), - SingleLang("CosmicScans.id", "https://cosmicscans.id", "id", overrideVersionCode = 2, className = "CosmicScansID"), + SingleLang("CosmicScans.id", "https://cosmicscans.id", "id", overrideVersionCode = 3, className = "CosmicScansID"), SingleLang("Diskus Scan", "https://diskusscan.com", "pt-BR", overrideVersionCode = 7), SingleLang("Dojing.net", "https://dojing.net", "id", isNsfw = true, className = "DojingNet"), SingleLang("DuniaKomik.id", "https://duniakomik.org", "id", className = "DuniaKomikId", overrideVersionCode = 2),