Indicate if Webtoon chapter has music (closes #769) (#989)

This commit is contained in:
Eugene 2019-03-31 12:29:06 -04:00 committed by GitHub
parent 62db2f5e67
commit 9339cfcfe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Webtoons'
pkgNameSuffix = 'en.webtoons'
extClass = '.Webtoons'
extVersionCode = 5
extVersionCode = 6
libVersion = '1.2'
}

View File

@ -145,7 +145,10 @@ class Webtoons : ParsedHttpSource() {
chapter.name = element.select("a > div.row > div.info > p.sub_title > span.ellipsis").text()
val select = element.select("a > div.row > div.num")
if (select.isNotEmpty()) {
chapter.name = chapter.name + " Ch. " + select.text().substringAfter("#")
chapter.name += " Ch. " + select.text().substringAfter("#")
}
if (element.select(".ico_bgm").isNotEmpty()) {
chapter.name += ""
}
chapter.date_upload = element.select("a > div.row > div.info > p.date").text()?.let { SimpleDateFormat("MMM d, yyyy", Locale.ENGLISH).parse(it).time } ?: 0
return chapter