webtoons: remove # from total chapters to all last chapter, and tracking to work correctly (#347)

This commit is contained in:
Carlos 2018-06-05 06:17:54 -04:00 committed by GitHub
parent 82f7456d0d
commit 15cf15b8fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@ ext {
appName = 'Tachiyomi: Webtoons'
pkgNameSuffix = "en.webtoons"
extClass = '.Webtoons'
extVersionCode = 2
extVersionSuffix = 1
extVersionCode = 3
extVersionSuffix = 2
libVersion = '1.2'
}

View File

@ -136,7 +136,7 @@ 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()
chapter.name = chapter.name + " Ch. " + select.text().substringAfter("#")
}
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