Aqua Manga: Fix Blocked by Cloudflare (#18564)

This commit is contained in:
Luqman 2023-10-17 05:18:41 +07:00 committed by GitHub
parent 476ef94703
commit 673af3b8a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -11,10 +11,16 @@ class AquaManga : Madara("Aqua Manga", "https://aquamanga.com", "en") {
.build()
override fun headersBuilder(): Headers.Builder = super.headersBuilder()
.set("Origin", baseUrl)
.set("Sec-Fetch-Dest", "empty")
.set("Sec-Fetch-Mode", "cors")
.set("Sec-Fetch-Site", "same-origin")
.add("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9")
.add("Accept-Language", "en-US,en;q=0.5")
.add("DNT", "1")
.add("Referer", "$baseUrl/")
.add("Sec-Fetch-Dest", "document")
.add("Sec-Fetch-Mode", "navigate")
.add("Sec-Fetch-Site", "same-origin")
.add("Sec-Fetch-User", "?1")
.add("Upgrade-Insecure-Requests", "1")
.add("X-Requested-With", "XMLHttpRequest")
override val chapterUrlSuffix = ""
}

View File

@ -36,7 +36,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Ansh Scans", "https://anshscans.org", "en", overrideVersionCode = 1),
SingleLang("ApollComics", "https://apollcomics.xyz", "es", isNsfw = true, overrideVersionCode = 2),
SingleLang("Apolltoons", "https://apolltoons.xyz", "es", isNsfw = true),
SingleLang("Aqua Manga", "https://aquamanga.com", "en", overrideVersionCode = 3),
SingleLang("Aqua Manga", "https://aquamanga.com", "en", overrideVersionCode = 4),
SingleLang("ArazNovel", "https://www.araznovel.com", "tr", overrideVersionCode = 3),
SingleLang("ArcheR Scans", "https://www.archerscans.com", "en", isNsfw = false),
SingleLang("Arthur Scan", "https://arthurscan.xyz", "pt-BR", overrideVersionCode = 4),