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
|
// use an integer for version numbers
|
||||||
version = 21
|
version = 22
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -86,11 +86,11 @@ class TimefourTv : MainAPI() {
|
||||||
listOf(Episode(arrayListOf(Channels(data.title, data.url)).toJson()))
|
listOf(Episode(arrayListOf(Channels(data.title, data.url)).toJson()))
|
||||||
} else {
|
} else {
|
||||||
val items = AppUtils.parseJson<ArrayList<Items>>(data.items)
|
val items = AppUtils.parseJson<ArrayList<Items>>(data.items)
|
||||||
items.mapNotNull {
|
items.mapNotNull { eps ->
|
||||||
Episode(
|
Episode(
|
||||||
data = it.channels?.toJson() ?: return@mapNotNull null,
|
data = eps.channels?.toJson() ?: return@mapNotNull null,
|
||||||
name = "${it.event} •",
|
name = "${eps.event} • ${eps.time}",
|
||||||
description = it.time,
|
description = eps.channels.map { it.channel_name }.joinToString(" • "),
|
||||||
posterUrl = detailPoster,
|
posterUrl = detailPoster,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue