AquaManga: add strict rate limit (#12315)
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 235 KiB After Width: | Height: | Size: 166 KiB |
|
@ -0,0 +1,11 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.en.aquamanga
|
||||||
|
|
||||||
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||||
|
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
|
||||||
|
.build()
|
||||||
|
}
|
|
@ -45,7 +45,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("Anisa Manga", "https://anisamanga.com", "tr"),
|
SingleLang("Anisa Manga", "https://anisamanga.com", "tr"),
|
||||||
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"),
|
SingleLang("Aqua Manga", "https://aquamanga.com", "en", overrideVersionCode = 1),
|
||||||
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),
|
||||||
|
|