diff --git a/src/en/mangadoom/build.gradle b/src/en/mangadoom/build.gradle index 38637b095..92ef9122d 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 = 1 + extVersionCode = 2 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 86ad563a0..bfdea86f2 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 @@ -174,13 +174,13 @@ class MangaDoom : HttpSource() { } override fun chapterListParse(response: Response): List { - val chapters = response.asJsoup().select("ul.chapter-list > li").reversed() + val chapters = response.asJsoup().select("ul.chapter-list > li") return chapters.map { SChapter.create().apply { this.name = it.select("span.val").first().ownText() this.url = it.select("a").first().attr("href") - this.chapter_number = chapters.indexOf(it).toFloat() + this.chapter_number = this.url.split("/").last().toFloat() val calculatedDate = it.select("span.date").first().ownText()?.let { parseDate(it)