Add King of Scans (#3974)
This commit is contained in:
parent
8c19cc40ca
commit
13474b911f
10
src/en/kingofscans/build.gradle
Normal file
10
src/en/kingofscans/build.gradle
Normal 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"
|
BIN
src/en/kingofscans/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
src/en/kingofscans/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.2 KiB |
BIN
src/en/kingofscans/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
src/en/kingofscans/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
BIN
src/en/kingofscans/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
src/en/kingofscans/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
src/en/kingofscans/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
src/en/kingofscans/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
src/en/kingofscans/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
src/en/kingofscans/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user