fix jinmantiantang (#10211)

This commit is contained in:
KoSChicken 2021-12-24 20:59:57 +08:00 committed by GitHub
parent 842225ad83
commit 12dd0a19d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -142,7 +142,7 @@ class Jinmantiantang : ConfigurableSource, ParsedHttpSource() {
override fun popularMangaNextPageSelector(): String = "a.prevnext"
override fun popularMangaSelector(): String {
val baseSelector = ".list-col .well-sm"
val baseSelector = "div.col-xs-6.col-sm-6.col-md-4.col-lg-3.list-col"
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.