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)