From fc27f99a486ff946e7aa8e8b414f2e55677ab172 Mon Sep 17 00:00:00 2001 From: h-hyuuga <83582211+h-hyuuga@users.noreply.github.com> Date: Mon, 1 Nov 2021 07:30:48 -0400 Subject: [PATCH] Update path for LynxScans' series listing (#9684) --- multisrc/overrides/genkan/lynxscans/src/LynxScans.kt | 2 +- .../java/eu/kanade/tachiyomi/multisrc/genkan/Genkan.kt | 7 ++++--- .../eu/kanade/tachiyomi/multisrc/genkan/GenkanGenerator.kt | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/multisrc/overrides/genkan/lynxscans/src/LynxScans.kt b/multisrc/overrides/genkan/lynxscans/src/LynxScans.kt index 4c8fa0e04..1c9811638 100644 --- a/multisrc/overrides/genkan/lynxscans/src/LynxScans.kt +++ b/multisrc/overrides/genkan/lynxscans/src/LynxScans.kt @@ -4,7 +4,7 @@ import eu.kanade.tachiyomi.multisrc.genkan.Genkan import eu.kanade.tachiyomi.source.model.Page import org.jsoup.nodes.Document -class LynxScans : Genkan("LynxScans", "https://lynxscans.com", "en") { +class LynxScans : Genkan("LynxScans", "https://lynxscans.com", "en", "/web/comics") { override fun pageListParse(document: Document): List { val pages = mutableListOf() diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/genkan/Genkan.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/genkan/Genkan.kt index c9884e9be..fa2f1d1b1 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/genkan/Genkan.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/genkan/Genkan.kt @@ -20,7 +20,8 @@ import java.util.Locale open class Genkan( override val name: String, override val baseUrl: String, - override val lang: String + override val lang: String, + val mangaUrlDirectory: String = "/comics", ) : ParsedHttpSource() { override val supportsLatest = true @@ -30,7 +31,7 @@ open class Genkan( override fun popularMangaSelector() = "div.list-item" override fun popularMangaRequest(page: Int): Request { - return GET("$baseUrl/comics?page=$page", headers) + return GET("$baseUrl$mangaUrlDirectory?page=$page", headers) } override fun latestUpdatesSelector() = popularMangaSelector() @@ -79,7 +80,7 @@ open class Genkan( // Search override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { - return GET("$baseUrl/comics?query=$query", headers) + return GET("$baseUrl$mangaUrlDirectory?query=$query", headers) } override fun searchMangaSelector() = popularMangaSelector() diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/genkan/GenkanGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/genkan/GenkanGenerator.kt index a7035bfb5..88ea133e6 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/genkan/GenkanGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/genkan/GenkanGenerator.kt @@ -9,7 +9,7 @@ class GenkanGenerator : ThemeSourceGenerator { override val themeClass = "Genkan" - override val baseVersionCode: Int = 1 + override val baseVersionCode: Int = 2 override val sources = listOf( SingleLang("Hunlight Scans", "https://hunlight-scans.info", "en"),