added HorizontalImages to Kisskh and Tv247

This commit is contained in:
hexated 2022-09-08 14:44:18 +07:00
parent 1da69244bc
commit 1fd60fb43f
4 changed files with 11 additions and 4 deletions

View File

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

View File

@ -41,7 +41,14 @@ class KisskhProvider : MainAPI() {
?.mapNotNull { media ->
media.toSearchResponse()
} ?: throw ErrorLoadingException("Invalid Json reponse")
return newHomePageResponse(request.name, home)
return newHomePageResponse(
list = HomePageList(
name = request.name,
list = home,
isHorizontalImages = true
),
hasNext = true
)
}
private fun Media.toSearchResponse(): SearchResponse? {

View File

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

View File

@ -25,7 +25,7 @@ class Tvtwofourseven : MainAPI() {
app.get(url).document.select("div.grid-items div.item").mapNotNull { item ->
item.toSearchResult()
}
HomePageList(name, home)
HomePageList(name, home, true)
}.filter { it.list.isNotEmpty() }
return HomePageResponse(home)
}