[RU]WayManga chapter_number (#11002)

This commit is contained in:
e-shl 2022-03-04 15:10:08 +05:00 committed by GitHub
parent 14c23afa9b
commit a0b0eba49f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'WayManga'
pkgNameSuffix = 'ru.waymanga'
extClass = '.WayManga'
extVersionCode = 2
extVersionCode = 3
}
apply from: "$rootDir/common.gradle"

View File

@ -89,6 +89,7 @@ class WayManga : ParsedHttpSource() {
val chapter = SChapter.create()
element.select("div.col-5").first().let {
chapter.name = it.text()
chapter.chapter_number = it.text().substringBefore(" глава").substringAfter("том ").toFloat()
}
chapter.setUrlWithoutDomain(urlElement.attr("href"))
chapter.date_upload = element.select("div.col-5:eq(1)").text().toDate()