Update path for LynxScans' series listing (#9684)
This commit is contained in:
parent
7a76a2756f
commit
fc27f99a48
|
@ -4,7 +4,7 @@ import eu.kanade.tachiyomi.multisrc.genkan.Genkan
|
||||||
import eu.kanade.tachiyomi.source.model.Page
|
import eu.kanade.tachiyomi.source.model.Page
|
||||||
import org.jsoup.nodes.Document
|
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> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
val pages = mutableListOf<Page>()
|
val pages = mutableListOf<Page>()
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,8 @@ import java.util.Locale
|
||||||
open class Genkan(
|
open class Genkan(
|
||||||
override val name: String,
|
override val name: String,
|
||||||
override val baseUrl: String,
|
override val baseUrl: String,
|
||||||
override val lang: String
|
override val lang: String,
|
||||||
|
val mangaUrlDirectory: String = "/comics",
|
||||||
) : ParsedHttpSource() {
|
) : ParsedHttpSource() {
|
||||||
|
|
||||||
override val supportsLatest = true
|
override val supportsLatest = true
|
||||||
|
@ -30,7 +31,7 @@ open class Genkan(
|
||||||
override fun popularMangaSelector() = "div.list-item"
|
override fun popularMangaSelector() = "div.list-item"
|
||||||
|
|
||||||
override fun popularMangaRequest(page: Int): Request {
|
override fun popularMangaRequest(page: Int): Request {
|
||||||
return GET("$baseUrl/comics?page=$page", headers)
|
return GET("$baseUrl$mangaUrlDirectory?page=$page", headers)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun latestUpdatesSelector() = popularMangaSelector()
|
override fun latestUpdatesSelector() = popularMangaSelector()
|
||||||
|
@ -79,7 +80,7 @@ open class Genkan(
|
||||||
// Search
|
// Search
|
||||||
|
|
||||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
|
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()
|
override fun searchMangaSelector() = popularMangaSelector()
|
||||||
|
|
|
@ -9,7 +9,7 @@ class GenkanGenerator : ThemeSourceGenerator {
|
||||||
|
|
||||||
override val themeClass = "Genkan"
|
override val themeClass = "Genkan"
|
||||||
|
|
||||||
override val baseVersionCode: Int = 1
|
override val baseVersionCode: Int = 2
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
SingleLang("Hunlight Scans", "https://hunlight-scans.info", "en"),
|
SingleLang("Hunlight Scans", "https://hunlight-scans.info", "en"),
|
||||||
|
|
Loading…
Reference in New Issue