Add missing headers (#15136)

* Add missing headers

* update rate limit

* retry CI

Co-authored-by: Carlos <2092019+CarlosEsco@users.noreply.github.com>
This commit is contained in:
Vetle Ledaal 2023-01-27 13:04:59 +01:00 committed by GitHub
parent f335375769
commit 398897a16a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -6,8 +6,14 @@ import eu.kanade.tachiyomi.network.interceptor.rateLimit
class AquaManga : Madara("Aqua Manga", "https://aquamanga.com", "en") { class AquaManga : Madara("Aqua Manga", "https://aquamanga.com", "en") {
override val client = super.client.newBuilder() override val client = super.client.newBuilder()
.rateLimit(1, 2) // 1 request per 2 seconds .rateLimit(1, 3) // 1 request per 3 seconds
.build() .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")
override val chapterUrlSuffix = "" override val chapterUrlSuffix = ""
} }

View File

@ -42,7 +42,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("A Pair of 2+", "https://po2scans.com", "en", className = "APairOf2"), SingleLang("A Pair of 2+", "https://po2scans.com", "en", className = "APairOf2"),
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 = 2), SingleLang("Aqua Manga", "https://aquamanga.com", "en", overrideVersionCode = 3),
SingleLang("ArazNovel", "https://www.araznovel.com", "tr", overrideVersionCode = 3), SingleLang("ArazNovel", "https://www.araznovel.com", "tr", overrideVersionCode = 3),
SingleLang("Arthur Scan", "https://arthurscan.xyz", "pt-BR", overrideVersionCode = 4), SingleLang("Arthur Scan", "https://arthurscan.xyz", "pt-BR", overrideVersionCode = 4),
SingleLang("Astral Library", "https://www.astrallibrary.net", "en", overrideVersionCode = 2), SingleLang("Astral Library", "https://www.astrallibrary.net", "en", overrideVersionCode = 2),