NIGHT SCANS: update url (#18123)
-update baseurl -add rate limit Closes #18041
This commit is contained in:
parent
d426901663
commit
37a4b721ba
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue