Haoman6: fix page list parsing (#13140)

This commit is contained in:
stevenyomi 2022-08-23 20:56:22 +08:00 committed by GitHub
parent 471a45ba95
commit 84fd64500f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -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"
}

View File

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