fix kuronime

This commit is contained in:
hexated 2023-04-04 15:24:16 +07:00
parent 0165d0a031
commit 11e96c840a
2 changed files with 4 additions and 3 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 7
version = 8
cloudstream {

View file

@ -20,6 +20,7 @@ class KuronimeProvider : MainAPI() {
override val hasMainPage = true
override var lang = "id"
override val hasDownloadSupport = true
override var sequentialMainPage = true
override val supportedTypes = setOf(
TvType.Anime,
@ -55,7 +56,7 @@ class KuronimeProvider : MainAPI() {
page: Int,
request: MainPageRequest
): HomePageResponse {
val document = app.get(request.data + page).document
val document = app.get(request.data + page, verify = false).document
val home = document.select("article").map {
it.toSearchResult()
}
@ -99,7 +100,7 @@ class KuronimeProvider : MainAPI() {
override suspend fun search(query: String): List<SearchResponse> {
val link = "$mainUrl/?s=$query"
val document = app.get(link).document
val document = app.get(link, verify = false).document
return document.select("article.bs").map {
it.toSearchResult()