From 29b41af722e6da105279b225473f00d3752f1879 Mon Sep 17 00:00:00 2001 From: Narin Date: Sun, 20 Jun 2021 15:44:15 -0700 Subject: [PATCH] Fixes chapterListParse (#7769) --- src/en/mangadoom/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/en/mangadoom/MangaDoom.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/en/mangadoom/build.gradle b/src/en/mangadoom/build.gradle index 92ef9122d..5e9b8e507 100644 --- a/src/en/mangadoom/build.gradle +++ b/src/en/mangadoom/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'MangaDoom' pkgNameSuffix = 'en.mangadoom' extClass = '.MangaDoom' - extVersionCode = 2 + extVersionCode = 3 libVersion = '1.2' } diff --git a/src/en/mangadoom/src/eu/kanade/tachiyomi/extension/en/mangadoom/MangaDoom.kt b/src/en/mangadoom/src/eu/kanade/tachiyomi/extension/en/mangadoom/MangaDoom.kt index d8f0a1633..b1cf3ab47 100644 --- a/src/en/mangadoom/src/eu/kanade/tachiyomi/extension/en/mangadoom/MangaDoom.kt +++ b/src/en/mangadoom/src/eu/kanade/tachiyomi/extension/en/mangadoom/MangaDoom.kt @@ -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)