Haoman6: fix page list parsing (#13140)
This commit is contained in:
parent
471a45ba95
commit
84fd64500f
|
@ -1,10 +1,17 @@
|
|||
package eu.kanade.tachiyomi.extension.zh.haoman6
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.mccms.MCCMS
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.source.model.SChapter
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
|
||||
class Haoman6 : MCCMS("好漫6", "https://www.haoman6.com") {
|
||||
override fun SManga.cleanup() = apply {
|
||||
title = title.removeSuffix("(最新在线)").removeSuffix("-")
|
||||
}
|
||||
|
||||
override fun pageListRequest(chapter: SChapter) =
|
||||
GET(baseUrl + chapter.url, headers)
|
||||
|
||||
override val lazyLoadImageAttr = "mob-ec"
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ class MCCMSGenerator : ThemeSourceGenerator {
|
|||
override val sources = listOf(
|
||||
SingleLang(
|
||||
name = "Haoman6", baseUrl = "https://www.haoman6.com", lang = "zh",
|
||||
className = "Haoman6", sourceName = "好漫6", overrideVersionCode = 2
|
||||
className = "Haoman6", sourceName = "好漫6", overrideVersionCode = 3
|
||||
),
|
||||
SingleLang( // 与 app2.haomanwu.com 相同
|
||||
name = "Haomanwu", baseUrl = "https://app2.haoman6.com", lang = "zh",
|
||||
|
|
Loading…
Reference in New Issue