parent
c3045a2d81
commit
5797b9638d
|
@ -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")
|
||||
|
|
|
@ -3,7 +3,7 @@ ext {
|
|||
extClass = '.KewnScans'
|
||||
themePkg = 'keyoapp'
|
||||
baseUrl = 'https://kewnscans.org'
|
||||
overrideVersionCode = 0
|
||||
overrideVersionCode = 1
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -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"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue