baozimhorg: fix illegal State Exception & more (#9656)

* baozimhorg: fix illegal State Exception

fix #9543

* Goda: Version bump

* Goda: Minor change

* Goda: improvement to mangaDetailsParse element selector

* Goda: added more status

* Revert "Goda: improvement to mangaDetailsParse element selector"

This reverts commit 6fe7c8b165ebf9b9568644aa50ef7d0e23a0a888.

* Goda: fix typo

* Goda: improvement to mangaDetailsParse element selector

* The selector is equally breakable

* Add mirrors

---------

Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com>
This commit is contained in:
Alan Tan 2025-07-16 00:41:26 +08:00 committed by Draff
parent 363498aee3
commit 2638c08b11
Signed by: Draff
GPG Key ID: E8A89F3211677653
3 changed files with 5 additions and 3 deletions

View File

@ -2,4 +2,4 @@ plugins {
id("lib-multisrc") id("lib-multisrc")
} }
baseVersionCode = 2 baseVersionCode = 3

View File

@ -84,12 +84,14 @@ open class GoDa(
val document = response.asJsoup().selectFirst("main")!! val document = response.asJsoup().selectFirst("main")!!
val titleElement = document.selectFirst("h1")!! val titleElement = document.selectFirst("h1")!!
val elements = titleElement.parent()!!.parent()!!.children() val elements = titleElement.parent()!!.parent()!!.children()
check(elements.size == 6) check(elements[4].tagName() == "p")
title = titleElement.ownText() title = titleElement.ownText()
status = when (titleElement.child(0).text()) { status = when (titleElement.child(0).text()) {
"連載中", "Ongoing" -> SManga.ONGOING "連載中", "Ongoing" -> SManga.ONGOING
"完結" -> SManga.COMPLETED "完結" -> SManga.COMPLETED
"停止更新" -> SManga.CANCELLED
"休刊" -> SManga.ON_HIATUS
else -> SManga.UNKNOWN else -> SManga.UNKNOWN
} }
author = Entities.unescape(elements[1].children().drop(1).joinToString { it.text().removeSuffix(" ,") }) author = Entities.unescape(elements[1].children().drop(1).joinToString { it.text().removeSuffix(" ,") })

View File

@ -68,7 +68,7 @@ class GoDaManhua : GoDa("GoDa漫画", "", "zh"), ConfigurableSource {
private const val MIRROR_PREF = "MIRROR" private const val MIRROR_PREF = "MIRROR"
// https://nav.telltome.net/ // https://nav.telltome.net/
private val MIRRORS get() = arrayOf("baozimh.org", "godamh.com", "m.baozimh.one") private val MIRRORS get() = arrayOf("baozimh.org", "godamh.com", "m.baozimh.one", "bzmh.org", "g-mh.org", "m.g-mh.org")
private class NotFoundInterceptor : Interceptor { private class NotFoundInterceptor : Interceptor {
override fun intercept(chain: Interceptor.Chain): Response { override fun intercept(chain: Interceptor.Chain): Response {