KappaBeast: Fix popular, latest and search (#5446)
Fix popular, latest and search
This commit is contained in:
parent
2d7101e19b
commit
651ed9f3cf
|
@ -3,7 +3,7 @@ ext {
|
||||||
extClass = '.KappaBeast'
|
extClass = '.KappaBeast'
|
||||||
themePkg = 'mangathemesia'
|
themePkg = 'mangathemesia'
|
||||||
baseUrl = 'https://kappabeast.com'
|
baseUrl = 'https://kappabeast.com'
|
||||||
overrideVersionCode = 0
|
overrideVersionCode = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -2,37 +2,17 @@ package eu.kanade.tachiyomi.extension.en.kappabeast
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
||||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||||
import eu.kanade.tachiyomi.source.model.FilterList
|
|
||||||
import org.jsoup.nodes.Document
|
import org.jsoup.nodes.Document
|
||||||
|
|
||||||
class KappaBeast : MangaThemesia(
|
class KappaBeast : MangaThemesia(
|
||||||
"Kappa Beast",
|
"Kappa Beast",
|
||||||
"https://kappabeast.com",
|
"https://kappabeast.com",
|
||||||
"en",
|
"en",
|
||||||
mangaUrlDirectory = "/series",
|
|
||||||
) {
|
) {
|
||||||
override val client = super.client.newBuilder()
|
override val client = super.client.newBuilder()
|
||||||
.rateLimit(3)
|
.rateLimit(3)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
override val typeFilterOptions = arrayOf(
|
|
||||||
Pair(intl["type_filter_option_manga"], "manga"),
|
|
||||||
)
|
|
||||||
|
|
||||||
override val popularFilter = FilterList(
|
|
||||||
OrderByFilter("", orderByFilterOptions, "popular"),
|
|
||||||
TypeFilter("", typeFilterOptions),
|
|
||||||
)
|
|
||||||
|
|
||||||
override val latestFilter = FilterList(
|
|
||||||
OrderByFilter("", orderByFilterOptions, "update"),
|
|
||||||
TypeFilter("", typeFilterOptions),
|
|
||||||
)
|
|
||||||
|
|
||||||
override fun searchMangaSelector() = ".listupd .maindet"
|
|
||||||
|
|
||||||
override val seriesThumbnailSelector = ".sertothumb .ts-post-image"
|
|
||||||
|
|
||||||
override val pageSelector = ".epcontent.entry-content img"
|
override val pageSelector = ".epcontent.entry-content img"
|
||||||
|
|
||||||
override fun parseGenres(document: Document): List<GenreData> {
|
override fun parseGenres(document: Document): List<GenreData> {
|
||||||
|
|
Loading…
Reference in New Issue