From 2bbdd0a351f64e57d99d5fb8d15a852d3960c2af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E6=96=97=E5=AD=90?= <1662093634@qq.com> Date: Tue, 13 Aug 2024 09:13:42 +0800 Subject: [PATCH] [NHentai] Fix favorite count when login (#4581) Fix favorite count when login --- src/all/nhentai/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/all/nhentai/build.gradle b/src/all/nhentai/build.gradle index 71687fe06..99695f8d5 100644 --- a/src/all/nhentai/build.gradle +++ b/src/all/nhentai/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'NHentai' extClass = '.NHFactory' - extVersionCode = 41 + extVersionCode = 42 isNsfw = true } diff --git a/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt b/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt index 55230983e..222ef9a0e 100644 --- a/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt +++ b/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt @@ -226,7 +226,7 @@ open class NHentai( .plus("$fullTitle\n") .plus("${document.select("div#info h2").text()}\n\n") .plus("Pages: ${getNumPages(document)}\n") - .plus("Favorited by: ${document.select("div#info i.fa-heart + span span").text().removeSurrounding("(", ")")}\n") + .plus("Favorited by: ${document.select("div#info i.fa-heart ~ span span").text().removeSurrounding("(", ")")}\n") .plus(getTagDescription(document)) genre = getTags(document) update_strategy = UpdateStrategy.ONLY_FETCH_ONCE