Asura fixes (#7168)

* Updated baseURL and added headers

Co-Authored-By: Riztard Lanthorn <16263232+Riztard@users.noreply.github.com>

* remove headers method

Co-authored-by: Riztard Lanthorn <16263232+Riztard@users.noreply.github.com>
This commit is contained in:
loocool2 2021-05-22 04:30:54 -07:00 committed by GitHub
parent 9c4b1caee5
commit 09164e14ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream
import okhttp3.OkHttpClient import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit import java.util.concurrent.TimeUnit
class AsuraScans : WPMangaStream("AsuraScans", "https://asurascans.com", "en") { class AsuraScans : WPMangaStream("AsuraScans", "https://www.asurascans.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()

View File

@ -12,7 +12,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator {
override val baseVersionCode: Int = 4 override val baseVersionCode: Int = 4
override val sources = listOf( override val sources = listOf(
SingleLang("Asura Scans", "https://asurascans.com", "en"), SingleLang("Asura Scans", "override url", "en", overrideVersionCode = 1),
SingleLang("KlanKomik", "https://klankomik.com", "id"), SingleLang("KlanKomik", "https://klankomik.com", "id"),
SingleLang("ChiOtaku", "https://chiotaku.com", "id"), SingleLang("ChiOtaku", "https://chiotaku.com", "id"),
SingleLang("MangaShiro", "https://mangashiro.co", "id"), SingleLang("MangaShiro", "https://mangashiro.co", "id"),