From 84fd64500faf3e9a81d647688e4407ed7ffe0dc7 Mon Sep 17 00:00:00 2001 From: stevenyomi <95685115+stevenyomi@users.noreply.github.com> Date: Tue, 23 Aug 2022 20:56:22 +0800 Subject: [PATCH] Haoman6: fix page list parsing (#13140) --- multisrc/overrides/mccms/haoman6/src/Haoman6.kt | 7 +++++++ .../eu/kanade/tachiyomi/multisrc/mccms/MCCMSGenerator.kt | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/multisrc/overrides/mccms/haoman6/src/Haoman6.kt b/multisrc/overrides/mccms/haoman6/src/Haoman6.kt index ad9096e6b..1ef1ac181 100644 --- a/multisrc/overrides/mccms/haoman6/src/Haoman6.kt +++ b/multisrc/overrides/mccms/haoman6/src/Haoman6.kt @@ -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" } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mccms/MCCMSGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mccms/MCCMSGenerator.kt index 851158f3a..e3df0072e 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mccms/MCCMSGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mccms/MCCMSGenerator.kt @@ -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",