From 0f6ad3b02bc30fe3e3235f854692a6d375c44c02 Mon Sep 17 00:00:00 2001 From: h-hyuuga <83582211+h-hyuuga@users.noreply.github.com> Date: Thu, 28 Oct 2021 06:49:10 -0400 Subject: [PATCH] Replace placeholder image with actual image (#9626) --- .../infernalvoidscans/src/InfernalVoidScans.kt | 18 ++++++++++++++++++ .../wpmangastream/WPMangaStreamGenerator.kt | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 multisrc/overrides/wpmangastream/infernalvoidscans/src/InfernalVoidScans.kt diff --git a/multisrc/overrides/wpmangastream/infernalvoidscans/src/InfernalVoidScans.kt b/multisrc/overrides/wpmangastream/infernalvoidscans/src/InfernalVoidScans.kt new file mode 100644 index 000000000..edeedf1bb --- /dev/null +++ b/multisrc/overrides/wpmangastream/infernalvoidscans/src/InfernalVoidScans.kt @@ -0,0 +1,18 @@ +package eu.kanade.tachiyomi.extension.en.infernalvoidscans + +import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream +import org.jsoup.nodes.Document +import eu.kanade.tachiyomi.source.model.Page + +class InfernalVoidScans : WPMangaStream("Infernal Void Scans", "https://infernalvoidscans.com", "en") { + // Site dynamically replaces a placeholder image in the "src" tag with the actual url in "data-src" + override fun pageListParse(document: Document): List { + return super.pageListParse( + document.apply { + select(pageSelector).forEach { + it.attr("src", it.attr("data-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 4f4c92049..626234c11 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 @@ -14,7 +14,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator { override val sources = listOf( MultiLang("Asura Scans", "https://www.asurascans.com", listOf("en", "tr"), className = "AsuraScansFactory", pkgName = "asurascans", overrideVersionCode = 6), - SingleLang("Infernal Void Scans", "https://infernalvoidscans.com", "en"), + SingleLang("Infernal Void Scans", "https://infernalvoidscans.com", "en", overrideVersionCode = 1), SingleLang("KlanKomik", "https://klankomik.com", "id", overrideVersionCode = 1), SingleLang("Kombatch", "https://kombatch.com", "id"), SingleLang("MasterKomik", "https://masterkomik.com", "id", overrideVersionCode = 1),