MCCMS: add Haoman6 back (#15881)

This commit is contained in:
stevenyomi 2023-04-01 23:56:47 +08:00 committed by GitHub
parent 7c9904acdc
commit b3fce539b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 26 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -0,0 +1,18 @@
package eu.kanade.tachiyomi.extension.zh.haoman6
import eu.kanade.tachiyomi.multisrc.mccms.MCCMSWeb
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
class Haoman6 : MCCMSWeb("好漫6", "https://www.haoman6.com") {
override fun SManga.cleanup() = apply {
description = description?.substringBefore(title)
title = title.removeSuffix("(最新在线)").removeSuffix("-")
}
override fun pageListRequest(chapter: SChapter) =
GET(baseUrl + chapter.url, headers)
override val lazyLoadImageAttr = "mob-ec"
}

View File

@ -8,6 +8,14 @@ class MCCMSGenerator : ThemeSourceGenerator {
override val themePkg = "mccms"
override val baseVersionCode = 6
override val sources = listOf(
SingleLang(
name = "Haoman6",
baseUrl = "https://www.haoman6.com",
lang = "zh",
className = "Haoman6",
sourceName = "好漫6",
overrideVersionCode = 3,
),
SingleLang( // same as: www.haoman6.cc
name = "Haoman6 (g-lens)",
baseUrl = "https://www.g-lens.com",