Fix CSS selectors for Author's Notes in Webtoons (#17151)

* Fix CSS selectors for Author's Notes in Webtoons

* Bump Webtoons code version
This commit is contained in:
altaccosc 2023-07-17 04:45:20 +02:00 committed by GitHub
parent 1674bf1d6e
commit ce701c82e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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"),
)