KappaBeast: Fix popular, latest and search (#5446)

Fix popular, latest and search
This commit is contained in:
Chopper 2024-10-11 08:15:06 -03:00 committed by Draff
parent 2d7101e19b
commit 651ed9f3cf
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 1 additions and 21 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.KappaBeast'
themePkg = 'mangathemesia'
baseUrl = 'https://kappabeast.com'
overrideVersionCode = 0
overrideVersionCode = 1
}
apply from: "$rootDir/common.gradle"

View File

@ -2,37 +2,17 @@ package eu.kanade.tachiyomi.extension.en.kappabeast
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import eu.kanade.tachiyomi.source.model.FilterList
import org.jsoup.nodes.Document
class KappaBeast : MangaThemesia(
"Kappa Beast",
"https://kappabeast.com",
"en",
mangaUrlDirectory = "/series",
) {
override val client = super.client.newBuilder()
.rateLimit(3)
.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 fun parseGenres(document: Document): List<GenreData> {