From ce701c82e3ed97fe40566411db48623b02c83250 Mon Sep 17 00:00:00 2001 From: altaccosc <97206249+altaccosc@users.noreply.github.com> Date: Mon, 17 Jul 2023 04:45:20 +0200 Subject: [PATCH] Fix CSS selectors for Author's Notes in Webtoons (#17151) * Fix CSS selectors for Author's Notes in Webtoons * Bump Webtoons code version --- multisrc/overrides/webtoons/webtoons/src/WebtoonsSrc.kt | 4 ++-- .../kanade/tachiyomi/multisrc/webtoons/WebtoonsGenerator.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/multisrc/overrides/webtoons/webtoons/src/WebtoonsSrc.kt b/multisrc/overrides/webtoons/webtoons/src/WebtoonsSrc.kt index 77f480844..0ae869e4e 100644 --- a/multisrc/overrides/webtoons/webtoons/src/WebtoonsSrc.kt +++ b/multisrc/overrides/webtoons/webtoons/src/WebtoonsSrc.kt @@ -57,10 +57,10 @@ open class WebtoonsSrc( var pages = document.select("div#_imageList > img").mapIndexed { i, element -> Page(i, "", element.attr("data-url")) } if (showAuthorsNotesPref()) { - val note = document.select("div.comment_area div.info_area p").text() + val note = document.select("div.creator_note p.author_text").text() if (note.isNotEmpty()) { - val creator = document.select("div.creator_note span.author a").text().trim() + val creator = document.select("div.creator_note a.author_name span").text().trim() pages = pages + Page( pages.size, diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/webtoons/WebtoonsGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/webtoons/WebtoonsGenerator.kt index e100a9560..d7a3ddf10 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/webtoons/WebtoonsGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/webtoons/WebtoonsGenerator.kt @@ -13,7 +13,7 @@ class WebtoonsGenerator : ThemeSourceGenerator { override val baseVersionCode: Int = 2 override val sources = listOf( - MultiLang("Webtoons.com", "https://www.webtoons.com", listOf("en", "fr", "es", "id", "th", "zh-Hant", "de"), className = "WebtoonsFactory", pkgName = "webtoons", overrideVersionCode = 37), + MultiLang("Webtoons.com", "https://www.webtoons.com", listOf("en", "fr", "es", "id", "th", "zh-Hant", "de"), className = "WebtoonsFactory", pkgName = "webtoons", overrideVersionCode = 38), SingleLang("Dongman Manhua", "https://www.dongmanmanhua.cn", "zh"), )