Komik Cast: fix error 403 (#10246)
This commit is contained in:
parent
cf0ebecafc
commit
90c4d9ddaf
|
@ -20,7 +20,7 @@ class KomikCast : WPMangaStream("Komik Cast", "https://komikcast.com", "id") {
|
|||
// Formerly "Komik Cast (WP Manga Stream)"
|
||||
override val id = 972717448578983812
|
||||
|
||||
private val rateLimitInterceptor = RateLimitInterceptor(4)
|
||||
private val rateLimitInterceptor = RateLimitInterceptor(3)
|
||||
|
||||
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||||
.connectTimeout(10, TimeUnit.SECONDS)
|
||||
|
@ -30,8 +30,9 @@ class KomikCast : WPMangaStream("Komik Cast", "https://komikcast.com", "id") {
|
|||
|
||||
override fun headersBuilder(): Headers.Builder = Headers.Builder()
|
||||
.add("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9")
|
||||
.add("Accept-language", "en-US,en;q=0.9")
|
||||
.add("Accept-language", "en-US,en;q=0.9,id;q=0.8")
|
||||
.add("Referer", baseUrl)
|
||||
.add("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0")
|
||||
|
||||
override fun imageRequest(page: Page): Request {
|
||||
val newHeaders = headersBuilder()
|
||||
|
|
|
@ -33,7 +33,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator {
|
|||
SingleLang("GURU Komik", "https://gurukomik.com", "id"),
|
||||
SingleLang("Shea Manga", "https://sheamanga.my.id", "id", overrideVersionCode = 1),
|
||||
SingleLang("Komik AV", "https://komikav.com", "id", overrideVersionCode = 1),
|
||||
SingleLang("Komik Cast", "https://komikcast.com", "id", overrideVersionCode = 8),
|
||||
SingleLang("Komik Cast", "https://komikcast.com", "id", overrideVersionCode = 9),
|
||||
SingleLang("West Manga", "https://westmanga.info", "id", overrideVersionCode = 1),
|
||||
SingleLang("MangaSwat", "https://swatmanga.co", "ar", overrideVersionCode = 4),
|
||||
SingleLang("Manga Raw.org", "https://mangaraw.org", "ja", className = "MangaRawOrg", overrideVersionCode = 1),
|
||||
|
|
Loading…
Reference in New Issue