Jinmantiantang; update URL and fix selector (#11147)

This commit is contained in:
kasperskier 2022-03-17 01:16:55 +08:00 committed by GitHub
parent dc35b5cca3
commit 2368b37c7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 11 deletions

View File

@ -22,18 +22,18 @@
android:host="18comic.org"
android:pathPattern="/album/..*"
android:scheme="https" />
<data
android:host="jmcomic5.cc"
android:pathPattern="/album/..*"
android:scheme="https" />
<data
android:host="jmcomic8.cc"
android:pathPattern="/album/..*"
android:scheme="https" />
<data
android:host="jmcomic9.cc"
android:pathPattern="/album/..*"
android:scheme="https" />
<data
android:host="jmcomic.mobi"
android:pathPattern="/album/..*"
android:scheme="https" />
<data
android:host="jmcomic1.mobi"
android:pathPattern="/album/..*"
android:scheme="https" />
</intent-filter>
</activity>
</application>

View File

@ -6,7 +6,7 @@ ext {
extName = 'Jinmantiantang'
pkgNameSuffix = 'zh.jinmantiantang'
extClass = '.Jinmantiantang'
extVersionCode = 22
extVersionCode = 23
isNsfw = true
}

View File

@ -142,7 +142,7 @@ class Jinmantiantang : ConfigurableSource, ParsedHttpSource() {
override fun popularMangaNextPageSelector(): String = "a.prevnext"
override fun popularMangaSelector(): String {
val baseSelector = "div.col-xs-6.col-sm-6.col-md-4.col-lg-3.list-col"
val baseSelector = "div.list-col:not([style])"
val removedGenres = preferences.getString("BLOCK_GENRES_LIST", "")!!.substringBefore("//").trim()
// Extra selector is jquery-like selector, it uses regex to match element.text().
// If string after 標籤 contains any word of removedGenres, the element would be ignored.
@ -562,7 +562,7 @@ class Jinmantiantang : ConfigurableSource, ParsedHttpSource() {
// Please also update AndroidManifest
private val SITE_ENTRIES_ARRAY = arrayOf(
DEFAULT_SITE, "18comic.org",
"jmcomic8.cc", "jmcomic9.cc", "jmcomic9.cc"
"jmcomic.mobi", "jmcomic1.mobi", "jmcomic1.mobi"
)
}
}