mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-25 19:52:56 +01:00
Asura Scans: Fix Brotli interceptor for J2K (#655)
This commit is contained in:
parent
712da66500
commit
e479d8245c
@ -45,6 +45,13 @@ class AsuraScans : MangaThemesia(
|
|||||||
.addInterceptor(::urlChangeInterceptor)
|
.addInterceptor(::urlChangeInterceptor)
|
||||||
.addInterceptor(::domainChangeIntercept)
|
.addInterceptor(::domainChangeIntercept)
|
||||||
.rateLimit(1, 3, TimeUnit.SECONDS)
|
.rateLimit(1, 3, TimeUnit.SECONDS)
|
||||||
|
.apply {
|
||||||
|
val interceptors = interceptors()
|
||||||
|
val index = interceptors.indexOfFirst { "Brotli" in it.javaClass.simpleName }
|
||||||
|
if (index >= 0) {
|
||||||
|
interceptors.add(interceptors.removeAt(index))
|
||||||
|
}
|
||||||
|
}
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
override val seriesDescriptionSelector = "div.desc p, div.entry-content p, div[itemprop=description]:not(:has(p))"
|
override val seriesDescriptionSelector = "div.desc p, div.entry-content p, div[itemprop=description]:not(:has(p))"
|
||||||
|
@ -21,7 +21,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
|
|||||||
SingleLang("Animated Glitched Scans", "https://anigliscans.xyz", "en", overrideVersionCode = 1),
|
SingleLang("Animated Glitched Scans", "https://anigliscans.xyz", "en", overrideVersionCode = 1),
|
||||||
SingleLang("Arven Scans", "https://arvenscans.com", "en"),
|
SingleLang("Arven Scans", "https://arvenscans.com", "en"),
|
||||||
SingleLang("AscalonScans", "https://ascalonscans.com", "en", overrideVersionCode = 1),
|
SingleLang("AscalonScans", "https://ascalonscans.com", "en", overrideVersionCode = 1),
|
||||||
SingleLang("Asura Scans", "https://asuratoon.com", "en"),
|
SingleLang("Asura Scans", "https://asuratoon.com", "en", overrideVersionCode = 1),
|
||||||
SingleLang("Azure Scans", "https://azuremanga.com", "en", overrideVersionCode = 1),
|
SingleLang("Azure Scans", "https://azuremanga.com", "en", overrideVersionCode = 1),
|
||||||
SingleLang("Banana-Scan", "https://banana-scan.com", "fr", className = "BananaScan", isNsfw = true),
|
SingleLang("Banana-Scan", "https://banana-scan.com", "fr", className = "BananaScan", isNsfw = true),
|
||||||
SingleLang("Beast Scans", "https://beastscans.net", "ar", overrideVersionCode = 1),
|
SingleLang("Beast Scans", "https://beastscans.net", "ar", overrideVersionCode = 1),
|
||||||
|
Loading…
Reference in New Issue
Block a user