Baozimh.org: fix duplicate chapter pages (#13414)

This commit is contained in:
stevenyomi 2022-09-10 22:34:22 +08:00 committed by GitHub
parent 0b2ddf3477
commit 27125130e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -43,6 +43,7 @@ class BaozimhOrg : ConfigurableSource, Madara(
override val client = network.client
override val useLoadMoreSearch = false
override val sendViewCount = false
override fun popularMangaRequest(page: Int) = GET("$baseUrl/hots/$page/", headers)
override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/dayup/$page/", headers)
@ -104,6 +105,9 @@ class BaozimhOrg : ConfigurableSource, Madara(
override fun parseRelativeDate(date: String) =
super.parseRelativeDate(date.replace("小时", "hour"))
// Jsoup won't ignore duplicates inside <noscript> tag
override val pageListParseSelector = ".text-left img.lazyload"
var genres: Array<Pair<String, String>> = emptyArray()
private fun parseGenresInternal(document: Document) {

View File

@ -56,7 +56,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Azora", "https://azoraworld.com", "ar", overrideVersionCode = 3),
SingleLang("Bakaman", "https://bakaman.net", "th", overrideVersionCode = 1),
SingleLang("Banana Cítrica", "https://dinastiacilly.com", "pt-BR", isNsfw = true, pkgName = "bananamecanica", className = "BananaCitrica", overrideVersionCode = 4),
SingleLang("Baozimh.org", "https://baozimh.org", "zh", className = "BaozimhOrg", sourceName = "包子漫画导航"),
SingleLang("Baozimh.org", "https://baozimh.org", "zh", className = "BaozimhOrg", sourceName = "包子漫画导航", overrideVersionCode = 1),
SingleLang("BestManga", "https://bestmanga.club", "ru", overrideVersionCode = 1),
SingleLang("BestManhua", "https://bestmanhua.com", "en", overrideVersionCode = 2),
SingleLang("Bichen Traduções", "https://bichentraducoes.com", "pt-BR", isNsfw = true, className = "BichenTraducoes"),