SinMH: fix genre parsing and update baseUrl for Gufeng (#12974)
This commit is contained in:
parent
6f448ed46c
commit
ac03bd4477
@ -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 {
|
||||||
|
|||||||
@ -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 = ", ")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user