XXManhwa/Komikindo: Update domains (#5671)

Update domain
This commit is contained in:
Chopper 2024-10-24 08:45:32 -03:00 committed by GitHub
parent a424bf6607
commit df45384c73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 11 additions and 7 deletions

View File

@ -2,8 +2,8 @@ ext {
extName = 'Komikindo'
extClass = '.Komikindo'
themePkg = 'mangathemesia'
baseUrl = 'https://komikindo.sbs'
overrideVersionCode = 0
baseUrl = 'https://komikindo.icu'
overrideVersionCode = 1
isNsfw = true
}

View File

@ -8,7 +8,7 @@ import org.jsoup.nodes.Document
class Komikindo : MangaThemesia(
"Komikindo",
"https://komikindo.sbs",
"https://komikindo.icu",
"id",
) {
// Some covers fail to load with no Accept header + no resize parameter.

View File

@ -1,7 +1,7 @@
ext {
extName = 'XXManhwa'
extClass = '.XxManhwa'
extVersionCode = 2
extVersionCode = 3
isNsfw = true
}

View File

@ -31,7 +31,7 @@ class XxManhwa : ParsedHttpSource(), ConfigurableSource {
override val lang = "vi"
override val baseUrl = "https://xxmanhwas.net"
override val baseUrl = "https://xxmanhwa.top"
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("ipoi", "1")
add("sid", chapterId)
add("cid", mangaId)
add("expiry", expiry)
add("token", token)
add("src", src)
add("src", "/${src.substringAfterLast("/")}")
val ebeCaptchaKey = html.substringAfter("action_ebe_captcha('").substringBefore("')")
val ebeCaptchaRequest = POST(
@ -175,7 +179,7 @@ class XxManhwa : ParsedHttpSource(), ConfigurableSource {
val basePageUrl = "https://${resp.media}/${resp.src.substringBeforeLast("/")}/"
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("/"))
}
}