Update MangareadRepository.kt

pull/61/head
XeroOl 5 years ago committed by GitHub
parent 6596dca291
commit f9971d90a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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",

Loading…
Cancel
Save