Fix page parsing (#10491)
This commit is contained in:
parent
37530de686
commit
ebef041ded
|
@ -0,0 +1,20 @@
|
|||
package eu.kanade.tachiyomi.extension.en.infernalvoidscans
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream
|
||||
import eu.kanade.tachiyomi.source.model.Page
|
||||
import org.jsoup.nodes.Document
|
||||
|
||||
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 { pageElem ->
|
||||
pageElem.attr("data-src")
|
||||
.takeIf { ! it.isNullOrBlank() }
|
||||
?.let { pageElem.attr("src", it) }
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
|
@ -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 = 10),
|
||||
SingleLang("Infernal Void Scans", "https://infernalvoidscans.com", "en", overrideVersionCode = 2),
|
||||
SingleLang("Infernal Void Scans", "https://infernalvoidscans.com", "en", overrideVersionCode = 3),
|
||||
SingleLang("KlanKomik", "https://klankomik.com", "id", overrideVersionCode = 1),
|
||||
SingleLang("Kombatch", "https://kombatch.com", "id"),
|
||||
SingleLang("MasterKomik", "https://masterkomik.com", "id", overrideVersionCode = 1),
|
||||
|
|
Loading…
Reference in New Issue