From 398897a16a61beaa81a344e05608992fc59ac488 Mon Sep 17 00:00:00 2001 From: Vetle Ledaal Date: Fri, 27 Jan 2023 13:04:59 +0100 Subject: [PATCH] Add missing headers (#15136) * Add missing headers * update rate limit * retry CI Co-authored-by: Carlos <2092019+CarlosEsco@users.noreply.github.com> --- multisrc/overrides/madara/aquamanga/src/AquaManga.kt | 8 +++++++- .../kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/multisrc/overrides/madara/aquamanga/src/AquaManga.kt b/multisrc/overrides/madara/aquamanga/src/AquaManga.kt index a2a70cf6e..ba41d26f3 100644 --- a/multisrc/overrides/madara/aquamanga/src/AquaManga.kt +++ b/multisrc/overrides/madara/aquamanga/src/AquaManga.kt @@ -6,8 +6,14 @@ import eu.kanade.tachiyomi.network.interceptor.rateLimit class AquaManga : Madara("Aqua Manga", "https://aquamanga.com", "en") { override val client = super.client.newBuilder() - .rateLimit(1, 2) // 1 request per 2 seconds + .rateLimit(1, 3) // 1 request per 3 seconds .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 = "" } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt index 0069437bd..9154fb84d 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt @@ -42,7 +42,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("A Pair of 2+", "https://po2scans.com", "en", className = "APairOf2"), 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 = 2), + SingleLang("Aqua Manga", "https://aquamanga.com", "en", overrideVersionCode = 3), SingleLang("ArazNovel", "https://www.araznovel.com", "tr", overrideVersionCode = 3), SingleLang("Arthur Scan", "https://arthurscan.xyz", "pt-BR", overrideVersionCode = 4), SingleLang("Astral Library", "https://www.astrallibrary.net", "en", overrideVersionCode = 2),