Fix some parsers
This commit is contained in:
@@ -157,9 +157,7 @@ class HoneyMangaParser(context: MangaLoaderContext) : PagedMangaParser(context,
|
||||
}
|
||||
|
||||
override suspend fun getPages(chapter: MangaChapter): List<MangaPage> {
|
||||
val body = JSONObject()
|
||||
body.put("chapterId", chapter.url)
|
||||
val content = webClient.httpPost(framesApi, body).parseJson().getJSONObject("resourceIds")
|
||||
val content = webClient.httpGet("$framesApi/${chapter.url}").parseJson().getJSONObject("resourceIds")
|
||||
val baseUrl = imageStorageUrl.tryGet().getOrDefault(IMAGE_BASEURL_FALLBACK)
|
||||
return List(content.length()) { i ->
|
||||
val item = content.getString(i.toString())
|
||||
|
||||
@@ -94,7 +94,7 @@ class MangaInUaParser(context: MangaLoaderContext) : PagedMangaParser(
|
||||
"news_id" to linkToComics.attrOrThrow("data-news_id"),
|
||||
"news_category" to linkToComics.attrOrThrow("data-news_category"),
|
||||
"this_link" to "",
|
||||
"user_hashs" to userHash,
|
||||
"user_hash" to userHash,
|
||||
),
|
||||
).parseHtml()
|
||||
val chapterNodes = chaptersDoc.select(".ltcitems")
|
||||
|
||||
Reference in New Issue
Block a user