KewnScans: remove hidden images (#2665)

PeepoJoker
This commit is contained in:
AwkwardPeak7 2024-04-30 10:38:07 +05:00 committed by Draff
parent c3045a2d81
commit 5797b9638d
3 changed files with 12 additions and 3 deletions

View File

@ -234,7 +234,7 @@ abstract class Keyoapp(
// Utilities
// From mangathemesia
private fun Element.imgAttr(width: String): String {
protected fun Element.imgAttr(width: String): String {
val url = when {
hasAttr("data-lazy-src") -> attr("abs:data-lazy-src")
hasAttr("data-src") -> attr("abs:data-src")

View File

@ -3,7 +3,7 @@ ext {
extClass = '.KewnScans'
themePkg = 'keyoapp'
baseUrl = 'https://kewnscans.org'
overrideVersionCode = 0
overrideVersionCode = 1
}
apply from: "$rootDir/common.gradle"

View File

@ -1,5 +1,14 @@
package eu.kanade.tachiyomi.extension.en.kewnscans
import eu.kanade.tachiyomi.multisrc.keyoapp.Keyoapp
import eu.kanade.tachiyomi.source.model.Page
import org.jsoup.nodes.Document
class KewnScans : Keyoapp("Kewn Scans", "https://kewnscans.org", "en")
class KewnScans : Keyoapp("Kewn Scans", "https://kewnscans.org", "en") {
override fun pageListParse(document: Document): List<Page> {
return document.select("#pages > img:not(.hidden)").map {
val index = it.attr("count").toInt()
Page(index, document.location(), it.imgAttr("150"))
}
}
}