[WaManga] Set reverse for list chaps
This commit is contained in:
@@ -84,7 +84,7 @@ internal class WaMangaParser(
|
|||||||
title = doc.getString("title"),
|
title = doc.getString("title"),
|
||||||
largeCoverUrl = doc.getString("thumbnail"),
|
largeCoverUrl = doc.getString("thumbnail"),
|
||||||
description = doc.getStringOrNull("description") ?: manga.description,
|
description = doc.getStringOrNull("description") ?: manga.description,
|
||||||
chapters = doc.getJSONArray("chapters").asTypedList<JSONObject>().mapChapters { _, it ->
|
chapters = doc.getJSONArray("chapters").asTypedList<JSONObject>().mapChapters(reversed = true) { _, it ->
|
||||||
val chapterUrl = it.getString("url")
|
val chapterUrl = it.getString("url")
|
||||||
MangaChapter(
|
MangaChapter(
|
||||||
id = generateUid(chapterUrl),
|
id = generateUid(chapterUrl),
|
||||||
|
|||||||
Reference in New Issue
Block a user