TimefourTv: update detail page

This commit is contained in:
alex 2024-01-07 18:09:14 +07:00
parent 9b02bff07d
commit f48fe37baa
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -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,
)
}