Aqua Manga: and another unblock (#18618)
* Aqua Manga: and another unblock * shitty lint cant handle extra space for making things harder
This commit is contained in:
parent
e510aa34bf
commit
194828449c
|
@ -1,19 +1,42 @@
|
||||||
package eu.kanade.tachiyomi.extension.en.aquamanga
|
package eu.kanade.tachiyomi.extension.en.aquamanga
|
||||||
|
|
||||||
|
import android.util.Base64
|
||||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||||
import okhttp3.Headers
|
import okhttp3.Headers
|
||||||
|
import java.nio.charset.Charset
|
||||||
|
|
||||||
class AquaManga : Madara("Aqua Manga", "https://aquamanga.com", "en") {
|
class AquaManga : Madara("Aqua Manga", "https://aquamanga.com", "en") {
|
||||||
|
|
||||||
override fun headersBuilder(): Headers.Builder = super.headersBuilder()
|
override fun headersBuilder(): Headers.Builder = super.headersBuilder()
|
||||||
.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", "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8")
|
||||||
.add("Accept-Language", "en-US,en;q=0.5")
|
.add("Accept-Language", "en-US,en;q=0.5")
|
||||||
.add("Referer", "$baseUrl/")
|
.add("Referer", "$baseUrl/")
|
||||||
.add("Sec-Fetch-Dest", "document")
|
.add("Sec-Fetch-Dest", "document")
|
||||||
.add("Sec-Fetch-Mode", "navigate")
|
.add("Sec-Fetch-Mode", "navigate")
|
||||||
.add("Sec-Fetch-Site", "same-origin")
|
.add("Sec-Fetch-Site", "same-origin")
|
||||||
.add("Upgrade-Insecure-Requests", "1")
|
.add("Upgrade-Insecure-Requests", "1")
|
||||||
.removeAll("X-Requested-With")
|
.add("X-Requested-With", u)
|
||||||
|
|
||||||
|
private val littleBitCursedEncodedValue = "ICAgSUFBZ0FFa0FRd0JCQUdjQVNRQkRBRUVBWndCUkFGVUFUZ0JDQUZ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0FFSUFWUUJHQUVZQVFnQmFBREFBUmdCRUFGRUFWUUJHQUVvQVVRQlZBRVlBYmdCUkFGVUFUZ0JDQUZFQVZRQnNBRUlBVVFCWEFHTUFad0JKQUVNQVFRQm5BRWtBUXdCQkFEMEFJQUFnQUNBQUlBQT0gICA="
|
||||||
|
|
||||||
|
private fun decoder(input: String, outputType: Charset): String {
|
||||||
|
return Base64.decode(input, Base64.DEFAULT).toString(outputType).trim()
|
||||||
|
}
|
||||||
|
|
||||||
|
private val U = decoder(littleBitCursedEncodedValue, Charsets.UTF_8)
|
||||||
|
private val I = decoder(U, Charsets.UTF_16LE)
|
||||||
|
private val b = decoder(I, Charsets.UTF_8)
|
||||||
|
private val i = decoder(b, Charsets.UTF_16BE)
|
||||||
|
private val і = decoder(i, Charsets.UTF_8)
|
||||||
|
private val m = decoder(і, Charsets.UTF_16LE)
|
||||||
|
private val u = decoder(m, Charsets.UTF_8)
|
||||||
|
|
||||||
override val chapterUrlSuffix = ""
|
override val chapterUrlSuffix = ""
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("Ansh Scans", "https://anshscans.org", "en", overrideVersionCode = 1),
|
SingleLang("Ansh Scans", "https://anshscans.org", "en", overrideVersionCode = 1),
|
||||||
SingleLang("ApollComics", "https://apollcomics.xyz", "es", isNsfw = true, overrideVersionCode = 2),
|
SingleLang("ApollComics", "https://apollcomics.xyz", "es", isNsfw = true, overrideVersionCode = 2),
|
||||||
SingleLang("Apolltoons", "https://apolltoons.xyz", "es", isNsfw = true),
|
SingleLang("Apolltoons", "https://apolltoons.xyz", "es", isNsfw = true),
|
||||||
SingleLang("Aqua Manga", "https://aquamanga.com", "en", overrideVersionCode = 5),
|
SingleLang("Aqua Manga", "https://aquamanga.com", "en", overrideVersionCode = 6),
|
||||||
SingleLang("ArazNovel", "https://www.araznovel.com", "tr", overrideVersionCode = 3),
|
SingleLang("ArazNovel", "https://www.araznovel.com", "tr", overrideVersionCode = 3),
|
||||||
SingleLang("ArcheR Scans", "https://www.archerscans.com", "en", isNsfw = false),
|
SingleLang("ArcheR Scans", "https://www.archerscans.com", "en", isNsfw = false),
|
||||||
SingleLang("Arthur Scan", "https://arthurscan.xyz", "pt-BR", overrideVersionCode = 4),
|
SingleLang("Arthur Scan", "https://arthurscan.xyz", "pt-BR", overrideVersionCode = 4),
|
||||||
|
|
Loading…
Reference in New Issue