Update path for LynxScans' series listing (#9684)

This commit is contained in:
h-hyuuga 2021-11-01 07:30:48 -04:00 committed by GitHub
parent 7a76a2756f
commit fc27f99a48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -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<Page> {
val pages = mutableListOf<Page>()

View File

@ -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()

View File

@ -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"),