[MimiHentai] Small fix

master
Draken 11 months ago committed by GitHub
parent 7c83730ad0
commit 08e53b2f5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -116,11 +116,12 @@ internal class MimiHentai(context: MangaLoaderContext) :
} }
} }
val json = webClient.httpGet(url).parseJson() val raw = webClient.httpGet(url)
val data = json.getJSONArray("data")
return if (url.contains("/top-manga")) { return if (url.contains("/top-manga")) {
val data = raw.parseJsonArray()
parseTopMangaList(data) parseTopMangaList(data)
} else { } else {
val data = raw.parseJson().getJSONArray("data")
parseMangaList(data) parseMangaList(data)
} }
} }

Loading…
Cancel
Save