Update MangaDoom.kt (#4491)

* Update MangaDoom.kt

Change manga order (First is recent)
Use chapter number from URL

* Update build.gradle

Co-authored-by: Myst <1592048+Mystou@users.noreply.github.com>
This commit is contained in:
Myst 2020-10-02 14:44:45 +02:00 committed by GitHub
parent 99d12011a3
commit d46e455bbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -174,13 +174,13 @@ class MangaDoom : HttpSource() {
}
override fun chapterListParse(response: Response): List<SChapter> {
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)