From 0fa1a6121fd88dfc409f8add12017a8ea76deca7 Mon Sep 17 00:00:00 2001 From: Vetle Ledaal Date: Tue, 4 Jan 2022 15:57:14 +0000 Subject: [PATCH] Fix pagination for KSGroupScans (#10331) --- multisrc/overrides/fmreader/ksgroupscans/src/KSGroupScans.kt | 2 ++ .../eu/kanade/tachiyomi/multisrc/fmreader/FMReaderGenerator.kt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/multisrc/overrides/fmreader/ksgroupscans/src/KSGroupScans.kt b/multisrc/overrides/fmreader/ksgroupscans/src/KSGroupScans.kt index 9e4bc4226..bc109f40f 100644 --- a/multisrc/overrides/fmreader/ksgroupscans/src/KSGroupScans.kt +++ b/multisrc/overrides/fmreader/ksgroupscans/src/KSGroupScans.kt @@ -6,6 +6,8 @@ import org.jsoup.nodes.Element import java.util.Calendar class KSGroupScans : FMReader("KSGroupScans", "https://ksgroupscans.com", "en") { + override fun popularMangaNextPageSelector() = ".pagination > li:last-child > a:not(.active)" + override fun chapterFromElement(element: Element, mangaTitle: String): SChapter { return SChapter.create().apply { element.select(chapterUrlSelector).first().let { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReaderGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReaderGenerator.kt index 362b2b77a..1e2a0b80c 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReaderGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReaderGenerator.kt @@ -23,7 +23,7 @@ class FMReaderGenerator : ThemeSourceGenerator { MultiLang("Manhwa18.net", "https://manhwa18.net", listOf("en", "ko"), className = "Manhwa18NetFactory", isNsfw = true), SingleLang("WeLoveManga", "https://weloma.net", "ja", pkgName = "rawlh", overrideVersionCode = 3), SingleLang("Say Truyen", "https://saytruyen.net", "vi", overrideVersionCode = 2), - SingleLang("KSGroupScans", "https://ksgroupscans.com", "en"), + SingleLang("KSGroupScans", "https://ksgroupscans.com", "en", overrideVersionCode = 1), // Sites that went down // SingleLang("18LHPlus", "https://18lhplus.com", "en", className = "EighteenLHPlus"), // SingleLang("HanaScan (RawQQ)", "https://hanascan.com", "ja", className = "HanaScanRawQQ"),