Add King of Scans (#3974)

This commit is contained in:
Vetle Ledaal 2024-07-12 13:24:06 +02:00 committed by Draff
parent 8c19cc40ca
commit 13474b911f
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
7 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,10 @@
ext {
extName = 'King of Scans'
extClass = '.KingOfScans'
themePkg = 'mangathemesia'
baseUrl = 'https://kingofscans.com'
overrideVersionCode = 0
isNsfw = true
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -0,0 +1,24 @@
package eu.kanade.tachiyomi.extension.en.kingofscans
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.source.model.Page
import org.jsoup.nodes.Document
class KingOfScans : MangaThemesia(
"King of Scans",
"https://kingofscans.com",
"en",
mangaUrlDirectory = "/comics",
) {
// Strip out position- and name-dependant ads. "Read first at ..."
override fun pageListParse(document: Document): List<Page> {
val pages = super.pageListParse(document)
return pages.filterIndexed { index, page ->
when (index) {
0 -> !page.imageUrl!!.endsWith("/START-KS.jpg")
pages.lastIndex -> !page.imageUrl!!.endsWith("/END-KS.jpg")
else -> true
}
}
}
}