fix: Jinmantiantang: Update manga selector (#9279)

* Fix manga selector error

Because of the site ui updating, the selector has to be changed.

* Update version number
This commit is contained in:
calion-m 2021-09-30 18:01:49 +08:00 committed by GitHub
parent 1da58f8553
commit 3cdba4b68a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Jinmantiantang'
pkgNameSuffix = 'zh.jinmantiantang'
extClass = '.Jinmantiantang'
extVersionCode = 15
extVersionCode = 16
containsNsfw = true
}

View File

@ -144,7 +144,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 div.well.well-sm"
val baseSelector = ".list-col .well-sm"
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.