diff --git a/multisrc/overrides/wpmangareader/flamescans/src/FlameScans.kt b/multisrc/overrides/wpmangareader/flamescans/src/FlameScans.kt index 2df1898bf..91df9c03a 100644 --- a/multisrc/overrides/wpmangareader/flamescans/src/FlameScans.kt +++ b/multisrc/overrides/wpmangareader/flamescans/src/FlameScans.kt @@ -30,12 +30,9 @@ class FlameScans : WPMangaReader( .connectTimeout(10, TimeUnit.SECONDS) .readTimeout(30, TimeUnit.SECONDS) .addInterceptor(::composedImageIntercept) - .addInterceptor(RateLimitInterceptor(1, 1, TimeUnit.SECONDS)) + .addInterceptor(RateLimitInterceptor(1, 3, TimeUnit.SECONDS)) .build() - override fun headersBuilder(): Headers.Builder = Headers.Builder() - .add("User-Agent", USER_AGENT) - private val composedSelector: String = "#readerarea div.figure_container div.composed_figure" override fun pageListParse(document: Document): List { @@ -118,8 +115,6 @@ class FlameScans : WPMangaReader( } companion object { - private const val USER_AGENT = "Tachiyomi Mozilla/5.0 (Windows NT 10.0; Win64; x64) " + - "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" private const val COMPOSED_SUFFIX = "?comp" private val MEDIA_TYPE = "image/png".toMediaType() diff --git a/multisrc/overrides/wpmangastream/asurascans/src/AsuraScans.kt b/multisrc/overrides/wpmangastream/asurascans/src/AsuraScans.kt index 90343f556..31d8354b3 100644 --- a/multisrc/overrides/wpmangastream/asurascans/src/AsuraScans.kt +++ b/multisrc/overrides/wpmangastream/asurascans/src/AsuraScans.kt @@ -3,16 +3,14 @@ package eu.kanade.tachiyomi.extension.en.asurascans import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream import okhttp3.OkHttpClient -import okhttp3.Headers -import okhttp3.Request import java.util.concurrent.TimeUnit import org.jsoup.nodes.Document import eu.kanade.tachiyomi.source.model.Page -import eu.kanade.tachiyomi.network.GET class AsuraScans : WPMangaStream("AsuraScans", "https://www.asurascans.com", "en") { - private val rateLimitInterceptor = RateLimitInterceptor(1) + + private val rateLimitInterceptor = RateLimitInterceptor(1, 3, TimeUnit.SECONDS) override val client: OkHttpClient = network.cloudflareClient.newBuilder() .connectTimeout(10, TimeUnit.SECONDS) @@ -20,10 +18,6 @@ class AsuraScans : WPMangaStream("AsuraScans", "https://www.asurascans.com", "en .addNetworkInterceptor(rateLimitInterceptor) .build() - override fun imageRequest(page: Page): Request { - return GET(page.imageUrl!!, headers.newBuilder().set("User-Agent", USER_AGENT).build()) - } - override val pageSelector = "div.rdminimal img[loading*=lazy]" // Skip scriptPages @@ -32,9 +26,4 @@ class AsuraScans : WPMangaStream("AsuraScans", "https://www.asurascans.com", "en .filterNot { it.attr("abs:src").isNullOrEmpty() } .mapIndexed { i, img -> Page(i, "", img.attr("abs:src")) } } - - companion object { - private const val USER_AGENT = "Tachiyomi Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; " + - "LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/76.0.3809.100 Mobile Safari/537.36" - } } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt index e8b2b6c66..cf2199e1c 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt @@ -23,7 +23,7 @@ class WPMangaReaderGenerator : ThemeSourceGenerator { SingleLang("Mangasusu", "https://mangasusu.co.in", "id", isNsfw = true), SingleLang("TurkToon", "https://turktoon.com", "tr"), SingleLang("Gecenin Lordu", "https://geceninlordu.com/", "tr", overrideVersionCode = 1), - SingleLang("Flame Scans", "https://flamescans.org", "en", overrideVersionCode = 7), + SingleLang("Flame Scans", "https://flamescans.org", "en", overrideVersionCode = 8), SingleLang("A Pair of 2+", "https://pairof2.com", "en", className = "APairOf2"), SingleLang("PMScans", "https://reader.pmscans.com", "en"), SingleLang("Skull Scans", "https://www.skullscans.com", "en"), diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt index fa18913d7..6c32bb878 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt @@ -12,7 +12,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator { override val baseVersionCode: Int = 7 override val sources = listOf( - SingleLang("Asura Scans", "https://www.asurascans.com", "en", overrideVersionCode = 4), + SingleLang("Asura Scans", "https://www.asurascans.com", "en", overrideVersionCode = 5), SingleLang("KlanKomik", "https://klankomik.com", "id", overrideVersionCode = 1), SingleLang("MasterKomik", "https://masterkomik.com", "id", overrideVersionCode = 1), SingleLang("Kaisar Komik", "https://kaisarkomik.com", "id", overrideVersionCode = 1),