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 // use an integer for version numbers
version = 21 version = 22
cloudstream { cloudstream {

View file

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