From 3cdba4b68a245445941ae4041de2d423980f4456 Mon Sep 17 00:00:00 2001 From: calion-m <69703920+calion-m@users.noreply.github.com> Date: Thu, 30 Sep 2021 18:01:49 +0800 Subject: [PATCH] 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 --- src/zh/jinmantiantang/build.gradle | 2 +- .../tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zh/jinmantiantang/build.gradle b/src/zh/jinmantiantang/build.gradle index 983d38a41..d81e7a4b7 100644 --- a/src/zh/jinmantiantang/build.gradle +++ b/src/zh/jinmantiantang/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Jinmantiantang' pkgNameSuffix = 'zh.jinmantiantang' extClass = '.Jinmantiantang' - extVersionCode = 15 + extVersionCode = 16 containsNsfw = true } diff --git a/src/zh/jinmantiantang/src/eu/kanade/tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt b/src/zh/jinmantiantang/src/eu/kanade/tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt index 0aa7b1b30..928a6b4f7 100644 --- a/src/zh/jinmantiantang/src/eu/kanade/tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt +++ b/src/zh/jinmantiantang/src/eu/kanade/tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt @@ -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.