Night Scans: add referer (#15238)

This commit is contained in:
mobi2002 2023-02-06 15:16:28 +05:00 committed by GitHub
parent 019622694f
commit a472bf5c04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

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

View File

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