NIGHT SCANS: update url (#18123)

-update baseurl
-add rate limit

Closes #18041
This commit is contained in:
Luqman 2023-09-25 02:11:05 +07:00 committed by GitHub
parent d426901663
commit 37a4b721ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -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)
}

View File

@ -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"),