diff --git a/multisrc/overrides/mangathemesia/nightscans/src/NightScans.kt b/multisrc/overrides/mangathemesia/nightscans/src/NightScans.kt index 025c679e9..92fd83bed 100644 --- a/multisrc/overrides/mangathemesia/nightscans/src/NightScans.kt +++ b/multisrc/overrides/mangathemesia/nightscans/src/NightScans.kt @@ -1,9 +1,17 @@ package eu.kanade.tachiyomi.extension.en.nightscans import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import eu.kanade.tachiyomi.network.interceptor.rateLimit import okhttp3.Headers +import okhttp3.OkHttpClient +import java.util.concurrent.TimeUnit + +class NightScans : MangaThemesia("NIGHT SCANS", "https://nightscans.net", "en", "/series") { + + override val client: OkHttpClient = super.client.newBuilder() + .rateLimit(20, 4, TimeUnit.SECONDS) + .build() -class NightScans : MangaThemesia("NIGHT SCANS", "https://nightscans.org", "en", "/series") { override fun headersBuilder(): Headers.Builder = super.headersBuilder() .add("Referer", baseUrl) } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt index 026aa1dd7..b2466b1b6 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt @@ -97,7 +97,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { SingleLang("Mundo Mangá-Kun", "https://mundomangakun.com.br", "pt-BR", className = "MundoMangaKun", isNsfw = true), SingleLang("Nekomik", "https://nekomik.me", "id", overrideVersionCode = 1), SingleLang("Ngomik", "https://ngomik.net", "id", overrideVersionCode = 2), - SingleLang("NIGHT SCANS", "https://nightscans.org", "en", isNsfw = true, className = "NightScans", overrideVersionCode = 1), + SingleLang("NIGHT SCANS", "https://nightscans.net", "en", isNsfw = true, className = "NightScans", overrideVersionCode = 2), SingleLang("Nocturnal Scans", "https://nocturnalscans.com", "en", overrideVersionCode = 1), SingleLang("Noromax", "https://noromax.my.id", "id"), SingleLang("OPSCANS", "https://opscans.com", "all"),