From 30a74800b05eb3557729d7557d36d17bed8eba3d Mon Sep 17 00:00:00 2001 From: bapeey <90949336+bapeey@users.noreply.github.com> Date: Sat, 26 Aug 2023 09:24:50 -0500 Subject: [PATCH] YM: Fix pages not found (#17675) --- .../java/eu/kanade/tachiyomi/multisrc/heancms/HeanCms.kt | 5 +++++ .../eu/kanade/tachiyomi/multisrc/heancms/HeanCmsGenerator.kt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCms.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCms.kt index d02b27857..b6171892a 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCms.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCms.kt @@ -393,6 +393,11 @@ abstract class HeanCms( override fun chapterListParse(response: Response): List { val result = response.parseAs() + if (slugStrategy == SlugStrategy.ID) { + preferences.slugMap = preferences.slugMap.toMutableMap() + .also { it[result.slug.toPermSlugIfNeeded()] = result.slug } + } + val currentTimestamp = System.currentTimeMillis() if (useNewQueryEndpoint) { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsGenerator.kt index 5477173e3..712e740bc 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsGenerator.kt @@ -15,7 +15,7 @@ class HeanCmsGenerator : ThemeSourceGenerator { SingleLang("Glorious Scan", "https://gloriousscan.com", "pt-BR", overrideVersionCode = 17), SingleLang("Omega Scans", "https://omegascans.org", "en", isNsfw = true, overrideVersionCode = 17), SingleLang("Reaper Scans", "https://reaperscans.net", "pt-BR", overrideVersionCode = 36), - SingleLang("YugenMangas", "https://yugenmangas.net", "es", isNsfw = true, overrideVersionCode = 7), + SingleLang("YugenMangas", "https://yugenmangas.net", "es", isNsfw = true, overrideVersionCode = 8), ) companion object {