From df45384c73d1b49f9ac72f18d67feff226a23626 Mon Sep 17 00:00:00 2001 From: Chopper <156493704+choppeh@users.noreply.github.com> Date: Thu, 24 Oct 2024 08:45:32 -0300 Subject: [PATCH] XXManhwa/Komikindo: Update domains (#5671) Update domain --- src/id/komikindo/build.gradle | 4 ++-- .../tachiyomi/extension/id/komikindo/Komikindo.kt | 2 +- src/vi/xxmanhwa/build.gradle | 2 +- .../kanade/tachiyomi/extension/vi/xxmanhwa/XxManhwa.kt | 10 +++++++--- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/id/komikindo/build.gradle b/src/id/komikindo/build.gradle index bb5016b52..86923cd1f 100644 --- a/src/id/komikindo/build.gradle +++ b/src/id/komikindo/build.gradle @@ -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 } diff --git a/src/id/komikindo/src/eu/kanade/tachiyomi/extension/id/komikindo/Komikindo.kt b/src/id/komikindo/src/eu/kanade/tachiyomi/extension/id/komikindo/Komikindo.kt index 19b289977..0036a3781 100644 --- a/src/id/komikindo/src/eu/kanade/tachiyomi/extension/id/komikindo/Komikindo.kt +++ b/src/id/komikindo/src/eu/kanade/tachiyomi/extension/id/komikindo/Komikindo.kt @@ -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. diff --git a/src/vi/xxmanhwa/build.gradle b/src/vi/xxmanhwa/build.gradle index f3cbad569..b79494cd3 100644 --- a/src/vi/xxmanhwa/build.gradle +++ b/src/vi/xxmanhwa/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'XXManhwa' extClass = '.XxManhwa' - extVersionCode = 2 + extVersionCode = 3 isNsfw = true } diff --git a/src/vi/xxmanhwa/src/eu/kanade/tachiyomi/extension/vi/xxmanhwa/XxManhwa.kt b/src/vi/xxmanhwa/src/eu/kanade/tachiyomi/extension/vi/xxmanhwa/XxManhwa.kt index a4de36287..dc250bf25 100644 --- a/src/vi/xxmanhwa/src/eu/kanade/tachiyomi/extension/vi/xxmanhwa/XxManhwa.kt +++ b/src/vi/xxmanhwa/src/eu/kanade/tachiyomi/extension/vi/xxmanhwa/XxManhwa.kt @@ -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("/")) } }