mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fix kuronime
This commit is contained in:
parent
0165d0a031
commit
11e96c840a
2 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 7
|
version = 8
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -20,6 +20,7 @@ class KuronimeProvider : MainAPI() {
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
override var lang = "id"
|
override var lang = "id"
|
||||||
override val hasDownloadSupport = true
|
override val hasDownloadSupport = true
|
||||||
|
override var sequentialMainPage = true
|
||||||
|
|
||||||
override val supportedTypes = setOf(
|
override val supportedTypes = setOf(
|
||||||
TvType.Anime,
|
TvType.Anime,
|
||||||
|
@ -55,7 +56,7 @@ class KuronimeProvider : MainAPI() {
|
||||||
page: Int,
|
page: Int,
|
||||||
request: MainPageRequest
|
request: MainPageRequest
|
||||||
): HomePageResponse {
|
): 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 {
|
val home = document.select("article").map {
|
||||||
it.toSearchResult()
|
it.toSearchResult()
|
||||||
}
|
}
|
||||||
|
@ -99,7 +100,7 @@ class KuronimeProvider : MainAPI() {
|
||||||
|
|
||||||
override suspend fun search(query: String): List<SearchResponse> {
|
override suspend fun search(query: String): List<SearchResponse> {
|
||||||
val link = "$mainUrl/?s=$query"
|
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 {
|
return document.select("article.bs").map {
|
||||||
it.toSearchResult()
|
it.toSearchResult()
|
||||||
|
|
Loading…
Reference in a new issue