Jinman Tiantang: update mirror URL (#14012)

This commit is contained in:
stevenyomi 2022-10-28 21:52:56 +08:00 committed by GitHub
parent f11ff6a1c0
commit c8ed15f451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 9 deletions

View File

@ -23,11 +23,11 @@
android:pathPattern="/album/..*" android:pathPattern="/album/..*"
android:scheme="https" /> android:scheme="https" />
<data <data
android:host="jmcomic.asia" android:host="jmcomic.win"
android:pathPattern="/album/..*" android:pathPattern="/album/..*"
android:scheme="https" /> android:scheme="https" />
<data <data
android:host="jmcomic1.city" android:host="jmcomic1.win"
android:pathPattern="/album/..*" android:pathPattern="/album/..*"
android:scheme="https" /> android:scheme="https" />
<data <data
@ -38,6 +38,10 @@
android:host="jmcomic1.me" android:host="jmcomic1.me"
android:pathPattern="/album/..*" android:pathPattern="/album/..*"
android:scheme="https" /> android:scheme="https" />
<data
android:host="jmcomic1.moe"
android:pathPattern="/album/..*"
android:scheme="https" />
</intent-filter> </intent-filter>
</activity> </activity>
</application> </application>

View File

@ -5,7 +5,7 @@ ext {
extName = 'Jinman Tiantang' extName = 'Jinman Tiantang'
pkgNameSuffix = 'zh.jinmantiantang' pkgNameSuffix = 'zh.jinmantiantang'
extClass = '.Jinmantiantang' extClass = '.Jinmantiantang'
extVersionCode = 30 extVersionCode = 31
isNsfw = true isNsfw = true
} }

View File

@ -176,11 +176,7 @@ class Jinmantiantang : ParsedHttpSource(), ConfigurableSource {
// 查询作者信息 // 查询作者信息
private fun selectAuthor(document: Document): String { private fun selectAuthor(document: Document): String {
val element = document.select("div.panel-body div.tag-block")[3] val element = document.select("div.panel-body div.tag-block")[3]
return if (element.select("a").size == 0) { return element.select(".btn-primary").joinToString { it.text() }
"未知"
} else {
element.select("a").text().trim().replace(" ", ", ")
}
} }
// 查询漫画状态和类别信息 // 查询漫画状态和类别信息

View File

@ -60,12 +60,14 @@ internal val SITE_ENTRIES_ARRAY_DESCRIPTION = arrayOf(
"主站", "海外分流", "主站", "海外分流",
"中国大陆总站", "中国大陆分流", "中国大陆总站", "中国大陆分流",
"东南亚线路1", "东南亚线路2", "东南亚线路1", "东南亚线路2",
"中国大陆分流2",
) )
// List is based on https://jmcomic.bet/ // List is based on https://jmcomic.bet/
// Please also update AndroidManifest // Please also update AndroidManifest
internal val SITE_ENTRIES_ARRAY = arrayOf( internal val SITE_ENTRIES_ARRAY = arrayOf(
"18comic.vip", "18comic.org", "18comic.vip", "18comic.org",
"jmcomic.asia", "jmcomic1.city", "jmcomic.win", "jmcomic1.win",
"jmcomic.me", "jmcomic1.me", "jmcomic.me", "jmcomic1.me",
"jmcomic1.moe",
) )