Add rate limit (#8507)
This commit is contained in:
parent
da476a6bf4
commit
426f53d471
@ -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"),
|
||||
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user