bump some rate limits (#8252)
* bump some rate limits * format fix * format fix * format fix
This commit is contained in:
parent
406751d6d6
commit
a625df4ccb
|
@ -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<Page> {
|
||||
|
@ -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()
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"),
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue