xCaliBR Scans: fix pages, use https (#6318)
This commit is contained in:
parent
6e43a99726
commit
c296117946
|
@ -2,10 +2,12 @@ package eu.kanade.tachiyomi.extension.en.xcalibrscans
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
|
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
|
||||||
import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream
|
import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream
|
||||||
|
import eu.kanade.tachiyomi.source.model.Page
|
||||||
import okhttp3.OkHttpClient
|
import okhttp3.OkHttpClient
|
||||||
|
import org.jsoup.nodes.Document
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
class xCaliBRScans : WPMangaStream("xCaliBR Scans", "http://xcalibrscans.com", "en") {
|
class xCaliBRScans : WPMangaStream("xCaliBR Scans", "https://xcalibrscans.com", "en") {
|
||||||
private val rateLimitInterceptor = RateLimitInterceptor(2)
|
private val rateLimitInterceptor = RateLimitInterceptor(2)
|
||||||
|
|
||||||
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||||||
|
@ -14,4 +16,9 @@ class xCaliBRScans : WPMangaStream("xCaliBR Scans", "http://xcalibrscans.com", "
|
||||||
.addNetworkInterceptor(rateLimitInterceptor)
|
.addNetworkInterceptor(rateLimitInterceptor)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
|
return document.select(pageSelector)
|
||||||
|
.mapIndexed { i, img -> Page(i, "", img.attr("data-src")) }
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("Silence Scan", "https://silencescan.net", "pt-BR"),
|
SingleLang("Silence Scan", "https://silencescan.net", "pt-BR"),
|
||||||
SingleLang("Kuma Scans (Kuma Translation)", "https://kumascans.com", "en", className = "KumaScans"),
|
SingleLang("Kuma Scans (Kuma Translation)", "https://kumascans.com", "en", className = "KumaScans"),
|
||||||
SingleLang("Tempest Manga", "https://manga.tempestfansub.com", "tr"),
|
SingleLang("Tempest Manga", "https://manga.tempestfansub.com", "tr"),
|
||||||
SingleLang("xCaliBR Scans", "http://xcalibrscans.com", "en"),
|
SingleLang("xCaliBR Scans", "https://xcalibrscans.com", "en", overrideVersionCode = 1),
|
||||||
SingleLang("NoxSubs", "https://noxsubs.com", "tr"),
|
SingleLang("NoxSubs", "https://noxsubs.com", "tr"),
|
||||||
SingleLang("World Romance Translation", "https://wrt.my.id/", "id", overrideVersionCode = 1),
|
SingleLang("World Romance Translation", "https://wrt.my.id/", "id", overrideVersionCode = 1),
|
||||||
SingleLang("The Apollo Team", "https://theapollo.team", "en"),
|
SingleLang("The Apollo Team", "https://theapollo.team", "en"),
|
||||||
|
|
Loading…
Reference in New Issue