parent
c5395cae72
commit
5cc6963a46
|
@ -2,8 +2,8 @@ ext {
|
||||||
extName = 'Komikindo'
|
extName = 'Komikindo'
|
||||||
extClass = '.Komikindo'
|
extClass = '.Komikindo'
|
||||||
themePkg = 'mangathemesia'
|
themePkg = 'mangathemesia'
|
||||||
baseUrl = 'https://komikindo.sbs'
|
baseUrl = 'https://komikindo.icu'
|
||||||
overrideVersionCode = 0
|
overrideVersionCode = 1
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import org.jsoup.nodes.Document
|
||||||
|
|
||||||
class Komikindo : MangaThemesia(
|
class Komikindo : MangaThemesia(
|
||||||
"Komikindo",
|
"Komikindo",
|
||||||
"https://komikindo.sbs",
|
"https://komikindo.icu",
|
||||||
"id",
|
"id",
|
||||||
) {
|
) {
|
||||||
// Some covers fail to load with no Accept header + no resize parameter.
|
// Some covers fail to load with no Accept header + no resize parameter.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'XXManhwa'
|
extName = 'XXManhwa'
|
||||||
extClass = '.XxManhwa'
|
extClass = '.XxManhwa'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ class XxManhwa : ParsedHttpSource(), ConfigurableSource {
|
||||||
|
|
||||||
override val lang = "vi"
|
override val lang = "vi"
|
||||||
|
|
||||||
override val baseUrl = "https://xxmanhwas.net"
|
override val baseUrl = "https://xxmanhwa.top"
|
||||||
|
|
||||||
override val supportsLatest = false
|
override val supportsLatest = false
|
||||||
|
|
||||||
|
@ -147,13 +147,17 @@ class XxManhwa : ParsedHttpSource(), ConfigurableSource {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.selectFirst("form[method=post] > input[type=hidden]")?.let { csrf ->
|
||||||
|
add(csrf.attr("name"), csrf.attr("value"))
|
||||||
|
}
|
||||||
|
|
||||||
add("iid", "_0_$iid")
|
add("iid", "_0_$iid")
|
||||||
add("ipoi", "1")
|
add("ipoi", "1")
|
||||||
add("sid", chapterId)
|
add("sid", chapterId)
|
||||||
add("cid", mangaId)
|
add("cid", mangaId)
|
||||||
add("expiry", expiry)
|
add("expiry", expiry)
|
||||||
add("token", token)
|
add("token", token)
|
||||||
add("src", src)
|
add("src", "/${src.substringAfterLast("/")}")
|
||||||
|
|
||||||
val ebeCaptchaKey = html.substringAfter("action_ebe_captcha('").substringBefore("')")
|
val ebeCaptchaKey = html.substringAfter("action_ebe_captcha('").substringBefore("')")
|
||||||
val ebeCaptchaRequest = POST(
|
val ebeCaptchaRequest = POST(
|
||||||
|
@ -175,7 +179,7 @@ class XxManhwa : ParsedHttpSource(), ConfigurableSource {
|
||||||
val basePageUrl = "https://${resp.media}/${resp.src.substringBeforeLast("/")}/"
|
val basePageUrl = "https://${resp.media}/${resp.src.substringBeforeLast("/")}/"
|
||||||
|
|
||||||
return document.select("div.cur p[data-src]").mapIndexed { i, it ->
|
return document.select("div.cur p[data-src]").mapIndexed { i, it ->
|
||||||
Page(i, imageUrl = basePageUrl + it.attr("data-src"))
|
Page(i, imageUrl = basePageUrl + it.attr("data-src").substringAfterLast("/"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue