mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
TimefourTv: update detail page
This commit is contained in:
parent
9b02bff07d
commit
f48fe37baa
2 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 21
|
||||
version = 22
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -86,11 +86,11 @@ class TimefourTv : MainAPI() {
|
|||
listOf(Episode(arrayListOf(Channels(data.title, data.url)).toJson()))
|
||||
} else {
|
||||
val items = AppUtils.parseJson<ArrayList<Items>>(data.items)
|
||||
items.mapNotNull {
|
||||
items.mapNotNull { eps ->
|
||||
Episode(
|
||||
data = it.channels?.toJson() ?: return@mapNotNull null,
|
||||
name = "${it.event} •",
|
||||
description = it.time,
|
||||
data = eps.channels?.toJson() ?: return@mapNotNull null,
|
||||
name = "${eps.event} • ${eps.time}",
|
||||
description = eps.channels.map { it.channel_name }.joinToString(" • "),
|
||||
posterUrl = detailPoster,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue