Replace placeholder image with actual image (#9626)

This commit is contained in:
h-hyuuga 2021-10-28 06:49:10 -04:00 committed by GitHub
parent 6a5bad1f42
commit 0f6ad3b02b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View File

@ -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<Page> {
return super.pageListParse(
document.apply {
select(pageSelector).forEach {
it.attr("src", it.attr("data-src"))
}
}
)
}
}

View File

@ -14,7 +14,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator {
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 = 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("KlanKomik", "https://klankomik.com", "id", overrideVersionCode = 1),
SingleLang("Kombatch", "https://kombatch.com", "id"), SingleLang("Kombatch", "https://kombatch.com", "id"),
SingleLang("MasterKomik", "https://masterkomik.com", "id", overrideVersionCode = 1), SingleLang("MasterKomik", "https://masterkomik.com", "id", overrideVersionCode = 1),