Asura Scans: Fix Brotli interceptor for J2K (#655)

This commit is contained in:
beerpsi 2024-01-26 16:53:47 +07:00 committed by GitHub
parent 712da66500
commit e479d8245c
2 changed files with 8 additions and 1 deletions

View File

@ -45,6 +45,13 @@ class AsuraScans : MangaThemesia(
.addInterceptor(::urlChangeInterceptor)
.addInterceptor(::domainChangeIntercept)
.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()
override val seriesDescriptionSelector = "div.desc p, div.entry-content p, div[itemprop=description]:not(:has(p))"

View File

@ -21,7 +21,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
SingleLang("Animated Glitched Scans", "https://anigliscans.xyz", "en", overrideVersionCode = 1),
SingleLang("Arven Scans", "https://arvenscans.com", "en"),
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("Banana-Scan", "https://banana-scan.com", "fr", className = "BananaScan", isNsfw = true),
SingleLang("Beast Scans", "https://beastscans.net", "ar", overrideVersionCode = 1),