diff --git a/multisrc/overrides/mangathemesia/realmscans/src/RealmScans.kt b/multisrc/overrides/mangathemesia/realmscans/src/RealmScans.kt index b4a8ec861..4cfc5c4c9 100644 --- a/multisrc/overrides/mangathemesia/realmscans/src/RealmScans.kt +++ b/multisrc/overrides/mangathemesia/realmscans/src/RealmScans.kt @@ -3,21 +3,20 @@ package eu.kanade.tachiyomi.extension.en.realmscans import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia import eu.kanade.tachiyomi.network.interceptor.rateLimit import eu.kanade.tachiyomi.source.model.Page +import okhttp3.Headers import okhttp3.OkHttpClient import org.jsoup.nodes.Document import java.util.concurrent.TimeUnit -class RealmScans : MangaThemesia( - "Realm Scans", - "https://realmscans.com", - "en", - "/series" -) { +class RealmScans : MangaThemesia("Realm Scans", "https://realmscans.com", "en", "/series") { override val client: OkHttpClient = super.client.newBuilder() .rateLimit(1, 1, TimeUnit.SECONDS) .build() + override fun headersBuilder(): Headers.Builder = Headers.Builder() + .add("Referer", baseUrl) + override fun pageListParse(document: Document): List { return super.pageListParse(document) .distinctBy { it.imageUrl } 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 4f55a45b6..11d8a1f28 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 @@ -92,7 +92,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { SingleLang("Raiki Scan", "https://raikiscan.com", "es"), SingleLang("Rawkuma", "https://rawkuma.com/", "ja"), SingleLang("Readkomik", "https://readkomik.com", "en", className = "ReadKomik", overrideVersionCode = 1), - SingleLang("Realm Scans", "https://realmscans.com", "en", overrideVersionCode = 4), + SingleLang("Realm Scans", "https://realmscans.com", "en", overrideVersionCode = 5), SingleLang("Ryukonesia", "https://ryukonesia.net", "id"), SingleLang("Sekaikomik", "https://www.sekaikomik.live", "id", isNsfw = true, overrideVersionCode = 9), SingleLang("Sekaikomik", "https://www.sekaikomik.site", "id", isNsfw = true, overrideVersionCode = 8),