Fix AsuraScans page loading (#9890)
This commit is contained in:
parent
638fa8c4d1
commit
efd26c5185
|
@ -33,13 +33,13 @@ abstract class AsuraScans(
|
||||||
}
|
}
|
||||||
|
|
||||||
class AsuraScansEn : AsuraScans("https://asurascans.com/", "en", SimpleDateFormat("MMM d, yyyy", Locale.US)) {
|
class AsuraScansEn : AsuraScans("https://asurascans.com/", "en", SimpleDateFormat("MMM d, yyyy", Locale.US)) {
|
||||||
override val pageSelector = "div.rdminimal img[loading*=lazy]"
|
override val pageSelector = "div.rdminimal p noscript img"
|
||||||
|
|
||||||
// Skip scriptPages
|
// Skip scriptPages
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
return document.select(pageSelector)
|
return document.select(pageSelector)
|
||||||
.filterNot { it.attr("abs:src").isNullOrEmpty() }
|
.filterNot { it.attr("src").isNullOrEmpty() }
|
||||||
.mapIndexed { i, img -> Page(i, "", img.attr("abs:src")) }
|
.mapIndexed { i, img -> Page(i, "", img.attr("src")) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator {
|
||||||
override val baseVersionCode: Int = 12
|
override val baseVersionCode: Int = 12
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
MultiLang("Asura Scans", "https://www.asurascans.com", listOf("en", "tr"), className = "AsuraScansFactory", pkgName = "asurascans", overrideVersionCode = 6),
|
MultiLang("Asura Scans", "https://www.asurascans.com", listOf("en", "tr"), className = "AsuraScansFactory", pkgName = "asurascans", overrideVersionCode = 7),
|
||||||
SingleLang("Infernal Void Scans", "https://infernalvoidscans.com", "en", overrideVersionCode = 2),
|
SingleLang("Infernal Void Scans", "https://infernalvoidscans.com", "en", overrideVersionCode = 2),
|
||||||
SingleLang("KlanKomik", "https://klankomik.com", "id", overrideVersionCode = 1),
|
SingleLang("KlanKomik", "https://klankomik.com", "id", overrideVersionCode = 1),
|
||||||
SingleLang("Kombatch", "https://kombatch.com", "id"),
|
SingleLang("Kombatch", "https://kombatch.com", "id"),
|
||||||
|
|
Loading…
Reference in New Issue