webtoons: remove # from total chapters to all last chapter, and tracking to work correctly (#347)
This commit is contained in:
parent
82f7456d0d
commit
15cf15b8fc
|
@ -5,8 +5,8 @@ ext {
|
||||||
appName = 'Tachiyomi: Webtoons'
|
appName = 'Tachiyomi: Webtoons'
|
||||||
pkgNameSuffix = "en.webtoons"
|
pkgNameSuffix = "en.webtoons"
|
||||||
extClass = '.Webtoons'
|
extClass = '.Webtoons'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
extVersionSuffix = 1
|
extVersionSuffix = 2
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,7 @@ class Webtoons : ParsedHttpSource() {
|
||||||
chapter.name = element.select("a > div.row > div.info > p.sub_title > span.ellipsis").text()
|
chapter.name = element.select("a > div.row > div.info > p.sub_title > span.ellipsis").text()
|
||||||
val select = element.select("a > div.row > div.num")
|
val select = element.select("a > div.row > div.num")
|
||||||
if (select.isNotEmpty()) {
|
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
|
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
|
return chapter
|
||||||
|
|
Loading…
Reference in New Issue