mirror of
https://github.com/recloudstream/cloudstream-extensions.git
synced 2024-08-15 03:03:54 +00:00
added HorizontalImages to Kisskh and Tv247
This commit is contained in:
parent
1da69244bc
commit
1fd60fb43f
4 changed files with 11 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 2
|
||||
version = 3
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
|||
|
|
@ -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? {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 1
|
||||
version = 2
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue