Realm Scans: fix chapter images issue (#14603)

Closes #14338
This commit is contained in:
Luqman 2022-12-20 00:13:07 +07:00 committed by GitHub
parent 33b348f034
commit 6aaf790747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -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<Page> {
return super.pageListParse(document)
.distinctBy { it.imageUrl }

View File

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