Update MangareadRepository.kt
This commit is contained in:
@@ -99,8 +99,8 @@ class MangareadRepository(
|
|||||||
val root2 = doc.body().selectFirst("div.content-area")
|
val root2 = doc.body().selectFirst("div.content-area")
|
||||||
?.selectFirst("div.c-page")
|
?.selectFirst("div.c-page")
|
||||||
?: throw ParseException("Root2 not found")
|
?: throw ParseException("Root2 not found")
|
||||||
val mangaId = doc.getElementsByAttribute("data-postid").firstOrNull()
|
val mangaId = doc.getElementsByAttribute("data-post").firstOrNull()
|
||||||
?.attr("data-postid")?.toLongOrNull()
|
?.attr("data-post")?.toLongOrNull()
|
||||||
?: throw ParseException("Cannot obtain manga id")
|
?: throw ParseException("Cannot obtain manga id")
|
||||||
val doc2 = loaderContext.httpPost(
|
val doc2 = loaderContext.httpPost(
|
||||||
"https://${getDomain()}/wp-admin/admin-ajax.php",
|
"https://${getDomain()}/wp-admin/admin-ajax.php",
|
||||||
|
|||||||
Reference in New Issue
Block a user