Fixes chapterListParse (#7769)

This commit is contained in:
Narin 2021-06-20 15:44:15 -07:00 committed by GitHub
parent dd8ba727cb
commit 29b41af722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaDoom'
pkgNameSuffix = 'en.mangadoom'
extClass = '.MangaDoom'
extVersionCode = 2
extVersionCode = 3
libVersion = '1.2'
}

View File

@ -187,7 +187,7 @@ class MangaDoom : HttpSource() {
SChapter.create().apply {
this.name = it.select("span.val").first().ownText()
this.url = it.select("a").first().attr("href")
this.chapter_number = this.url.split("/").last().toFloat()
this.chapter_number = this.url.split("/").last().replace(Regex("[^0-9.]"), "").toFloat()
val calculatedDate = it.select("span.date").first().ownText()?.let {
parseDate(it)