SinMH: fix genre parsing and update baseUrl for Gufeng (#12974)

This commit is contained in:
stevenyomi 2022-08-14 20:49:54 +08:00 committed by GitHub
parent 6f448ed46c
commit ac03bd4477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ import org.jsoup.nodes.Document
import rx.Observable import rx.Observable
import rx.Single import rx.Single
class Gufengmh : SinMH("古风漫画网", "https://www.gufengmh9.com") { class Gufengmh : SinMH("古风漫画网", "https://www.123gf.com") {
override fun mangaDetailsParse(document: Document): SManga = override fun mangaDetailsParse(document: Document): SManga =
super.mangaDetailsParse(document).apply { super.mangaDetailsParse(document).apply {

View File

@ -121,7 +121,7 @@ abstract class SinMH(
val category = detailsList.selectFirst("strong:contains(类型) + a") val category = detailsList.selectFirst("strong:contains(类型) + a")
val breadcrumbs = document.selectFirst("div.breadcrumb-bar").select("a[href^=/list/]") val breadcrumbs = document.selectFirst("div.breadcrumb-bar").select("a[href^=/list/]")
return buildString { return buildString {
append(category) append(category.text())
breadcrumbs.map(Element::text).filter(String::isNotEmpty).joinTo(this, prefix = ", ") breadcrumbs.map(Element::text).filter(String::isNotEmpty).joinTo(this, prefix = ", ")
} }
} }

View File

@ -6,10 +6,10 @@ import generator.ThemeSourceGenerator
class SinMHGenerator : ThemeSourceGenerator { class SinMHGenerator : ThemeSourceGenerator {
override val themeClass = "SinMH" override val themeClass = "SinMH"
override val themePkg = "sinmh" override val themePkg = "sinmh"
override val baseVersionCode = 7 override val baseVersionCode = 8
override val sources = listOf( override val sources = listOf(
SingleLang( SingleLang(
name = "Gufeng Manhua", baseUrl = "https://www.gufengmh9.com", lang = "zh", name = "Gufeng Manhua", baseUrl = "https://www.123gf.com", lang = "zh",
className = "Gufengmh", sourceName = "古风漫画网", overrideVersionCode = 6 className = "Gufengmh", sourceName = "古风漫画网", overrideVersionCode = 6
), ),
SingleLang( SingleLang(