Fix WebToons author's notes (#11691)

* Update Webtoons.kt

* Bump WebToons extension version 32=>33
This commit is contained in:
altaccosc 2022-05-02 23:33:43 +02:00 committed by GitHub
parent 272d00b352
commit 440168ca7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -321,12 +321,12 @@ open class Webtoons(
var pages = document.select("div#_imageList > img").mapIndexed { i, element -> Page(i, "", element.attr("data-url")) }
if (showAuthorsNotesPref()) {
val note = document.select("div.creator_note > p").text()
val note = document.select("div.comment_area div.info_area p").text()
if (note.isNotEmpty()) {
val noteImage = toImage(note, 42)
val creator = document.select("div.creator_note > h2").html().replace("<span>Creator</span>", "").trim()
val creator = document.select("div.creator_note span.author a").text().trim()
val creatorImage = toImage("Author's Notes from $creator", 43, true)
pages = pages + Page(pages.size, "", creatorImage)

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 = 32),
MultiLang("Webtoons.com", "https://www.webtoons.com", listOf("en", "fr", "es", "id", "th", "zh-Hant", "de"), className = "WebtoonsFactory", pkgName = "webtoons", overrideVersionCode = 33),
SingleLang("Dongman Manhua", "https://www.dongmanmanhua.cn", "zh")
)