Night Scans: add referer (#15238)
This commit is contained in:
parent
019622694f
commit
a472bf5c04
|
@ -1,5 +1,9 @@
|
||||||
package eu.kanade.tachiyomi.extension.en.nightscans
|
package eu.kanade.tachiyomi.extension.en.nightscans
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
||||||
|
import okhttp3.Headers
|
||||||
|
|
||||||
class NightScans : MangaThemesia("NIGHT SCANS", "https://nightscans.org", "en", "/series")
|
class NightScans : MangaThemesia("NIGHT SCANS", "https://nightscans.org", "en", "/series") {
|
||||||
|
override fun headersBuilder(): Headers.Builder = super.headersBuilder()
|
||||||
|
.add("Referer", baseUrl)
|
||||||
|
}
|
||||||
|
|
|
@ -82,7 +82,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("Mundo Mangá-Kun", "https://mundomangakun.com.br", "pt-BR", className = "MundoMangaKun", isNsfw = true),
|
SingleLang("Mundo Mangá-Kun", "https://mundomangakun.com.br", "pt-BR", className = "MundoMangaKun", isNsfw = true),
|
||||||
SingleLang("Nekomik", "https://nekomik.com", "id"),
|
SingleLang("Nekomik", "https://nekomik.com", "id"),
|
||||||
SingleLang("Ngomik", "https://ngomik.net", "id", overrideVersionCode = 2),
|
SingleLang("Ngomik", "https://ngomik.net", "id", overrideVersionCode = 2),
|
||||||
SingleLang("NIGHT SCANS", "https://nightscans.org", "en", isNsfw = true, className = "NightScans"),
|
SingleLang("NIGHT SCANS", "https://nightscans.org", "en", isNsfw = true, className = "NightScans", overrideVersionCode = 1),
|
||||||
SingleLang("Nocturnal Scans", "https://nocturnalscans.com", "en", overrideVersionCode = 1),
|
SingleLang("Nocturnal Scans", "https://nocturnalscans.com", "en", overrideVersionCode = 1),
|
||||||
SingleLang("Omega Scans", "https://omegascans.org", "en", isNsfw = true),
|
SingleLang("Omega Scans", "https://omegascans.org", "en", isNsfw = true),
|
||||||
SingleLang("Origami Orpheans", "https://origami-orpheans.com.br", "pt-BR", overrideVersionCode = 9),
|
SingleLang("Origami Orpheans", "https://origami-orpheans.com.br", "pt-BR", overrideVersionCode = 9),
|
||||||
|
|
Loading…
Reference in New Issue