diff --git a/multisrc/overrides/madara/infrafandub/src/InfraFandub.kt b/multisrc/overrides/madara/infrafandub/src/InfraFandub.kt new file mode 100644 index 000000000..e1f1dc461 --- /dev/null +++ b/multisrc/overrides/madara/infrafandub/src/InfraFandub.kt @@ -0,0 +1,23 @@ +package eu.kanade.tachiyomi.extension.es.infrafandub + +import eu.kanade.tachiyomi.multisrc.madara.Madara +import eu.kanade.tachiyomi.network.interceptor.rateLimit +import okhttp3.OkHttpClient +import java.text.SimpleDateFormat +import java.util.Locale +import java.util.concurrent.TimeUnit + +class InfraFandub : Madara( + "InfraFandub", + "https://infrafandub.com", + "es", + SimpleDateFormat("dd/MM/yyyy", Locale("es")), +) { + override val client: OkHttpClient = super.client.newBuilder() + .rateLimit(2, 1, TimeUnit.SECONDS) + .build() + + override val useNewChapterEndpoint = true + + override val mangaDetailsSelectorStatus = "div.post-content_item:contains(Estado) div.summary-content" +} 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 5dae69a2e..77de1b465 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 @@ -155,7 +155,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Illusion Scan", "https://illusionscan.com", "pt-BR", isNsfw = true), SingleLang("Immortal Updates", "https://immortalupdates.com", "en", overrideVersionCode = 6), SingleLang("Império Scans", "https://imperioscans.com.br", "pt-BR", className = "ImperioScans", overrideVersionCode = 1), - SingleLang("InfraFandub", "https://infrafandub.xyz", "es"), + SingleLang("InfraFandub", "https://infrafandub.com", "es", overrideVersionCode = 1), SingleLang("Inmortal Scan", "https://manga.mundodrama.site", "es"), SingleLang("InstaManhwa", "https://www.instamanhwa.com", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("IsekaiScan.com", "https://isekaiscan.com", "en", className = "IsekaiScanCom", overrideVersionCode = 4),