Webnovel.com add lock to chapter name (#5301)

add lock to locked chapter
This commit is contained in:
Riztard Lanthorn 2021-01-03 22:17:09 +07:00 committed by GitHub
parent 46eb268798
commit 612f1a16d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Webnovel.com'
pkgNameSuffix = 'en.webnovel'
extClass = '.Webnovel'
extVersionCode = 1
extVersionCode = 2
libVersion = '1.2'
}

View File

@ -87,7 +87,8 @@ class Webnovel : ParsedHttpSource() {
override fun chapterFromElement(element: Element) = SChapter.create().apply {
setUrlWithoutDomain(element.attr("href"))
name = element.attr("title")
name = if (element.select("svg").hasAttr("class")) { "\uD83D\uDD12 " } else { "" } +
element.attr("title")
date_upload = parseChapterDate(element.select(".oh small").text())
}