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:
parent
99d12011a3
commit
d46e455bbc
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'MangaDoom'
|
extName = 'MangaDoom'
|
||||||
pkgNameSuffix = 'en.mangadoom'
|
pkgNameSuffix = 'en.mangadoom'
|
||||||
extClass = '.MangaDoom'
|
extClass = '.MangaDoom'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -174,13 +174,13 @@ class MangaDoom : HttpSource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun chapterListParse(response: Response): List<SChapter> {
|
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 {
|
return chapters.map {
|
||||||
SChapter.create().apply {
|
SChapter.create().apply {
|
||||||
this.name = it.select("span.val").first().ownText()
|
this.name = it.select("span.val").first().ownText()
|
||||||
this.url = it.select("a").first().attr("href")
|
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 {
|
val calculatedDate = it.select("span.date").first().ownText()?.let {
|
||||||
parseDate(it)
|
parseDate(it)
|
||||||
|
|
Loading…
Reference in New Issue