Add rate limit (#8507)

This commit is contained in:
Arraiment 2021-08-10 21:16:19 +08:00 committed by GitHub
parent da476a6bf4
commit 426f53d471
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View File

@ -1,11 +1,23 @@
package eu.kanade.tachiyomi.extension.es.mangafenix
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
class MangaFenix : Madara("Manga Fenix", "https://manga-fenix.com", "es", SimpleDateFormat("dd MMMM, yyyy", Locale("es"))){
override fun getGenreList(): List<Genre> = listOf(
class MangaFenix : Madara(
"Manga Fenix",
"https://manga-fenix.com",
"es",
SimpleDateFormat("dd MMMM, yyyy", Locale("es"))
) {
override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1))
.build()
override fun getGenreList(): List<Genre> = listOf(
Genre("Accion", "accion"),
Genre("Artes Marciales", "artes-marciales"),
Genre("Aventuras", "aventuras"),

View File

@ -144,7 +144,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Manga District", "https://mangadistrict.com", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Manga Diyari", "https://manga-diyari.com", "tr", overrideVersionCode = 1),
SingleLang("Manga Drop Out", "https://www.mangadropout.xyz", "id", isNsfw = true, overrideVersionCode = 1),
SingleLang("Manga Fenix", "https://manga-fenix.com", "es", overrideVersionCode = 1),
SingleLang("Manga Fenix", "https://manga-fenix.com", "es", overrideVersionCode = 2),
SingleLang("Manga Funny", "https://mangafunny.com", "en"),
SingleLang("Manga Hentai", "https://mangahentai.me", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Manga Hero", "https://mangahero.xyz", "en", overrideVersionCode = 2),