[MangaInUa] Fix chapters loading

This commit is contained in:
2023-12-25 12:40:31 +02:00
parent edc07b5dbd
commit d5a6c95ffb

View File

@@ -87,16 +87,17 @@ class MangaInUaParser(context: MangaLoaderContext) : PagedMangaParser(
userHashRegex.find(script.html())?.groupValues?.getOrNull(1)
}
val dateFormat = SimpleDateFormat("dd.MM.yyyy", Locale.US)
val chapterNodes = webClient.httpPost(
val chaptersDoc = webClient.httpPost(
"https://$domain/engine/ajax/controller.php?mod=load_chapters",
mapOf(
"action" to "show",
"news_id" to linkToComics.attrOrThrow("data-news_id"),
"news_category" to linkToComics.attrOrThrow("data-news_category"),
"this_link" to "",
"user_hash" to userHash,
"user_hashs" to userHash,
),
).parseHtml().select(".ltcitems")
).parseHtml()
val chapterNodes = chaptersDoc.select(".ltcitems")
var prevChapterName: String? = null
var i = 0
return manga.copy(