From efd26c5185578b310fdca75dad4a2aa9f69ea3de Mon Sep 17 00:00:00 2001 From: h-hyuuga <83582211+h-hyuuga@users.noreply.github.com> Date: Sun, 21 Nov 2021 18:40:12 -0500 Subject: [PATCH] Fix AsuraScans page loading (#9890) --- .../wpmangastream/asurascans/src/AsuraScansFactory.kt | 6 +++--- .../multisrc/wpmangastream/WPMangaStreamGenerator.kt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/multisrc/overrides/wpmangastream/asurascans/src/AsuraScansFactory.kt b/multisrc/overrides/wpmangastream/asurascans/src/AsuraScansFactory.kt index 44535689e..b8c68e097 100644 --- a/multisrc/overrides/wpmangastream/asurascans/src/AsuraScansFactory.kt +++ b/multisrc/overrides/wpmangastream/asurascans/src/AsuraScansFactory.kt @@ -33,13 +33,13 @@ abstract class AsuraScans( } 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 override fun pageListParse(document: Document): List { return document.select(pageSelector) - .filterNot { it.attr("abs:src").isNullOrEmpty() } - .mapIndexed { i, img -> Page(i, "", img.attr("abs:src")) } + .filterNot { it.attr("src").isNullOrEmpty() } + .mapIndexed { i, img -> Page(i, "", img.attr("src")) } } } 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 d4160c21c..eea78c92b 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 @@ -13,7 +13,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator { override val baseVersionCode: Int = 12 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("KlanKomik", "https://klankomik.com", "id", overrideVersionCode = 1), SingleLang("Kombatch", "https://kombatch.com", "id"),