From d8d2f69191d765ad00d2cb22e6b2db3fed4cf658 Mon Sep 17 00:00:00 2001 From: hexated Date: Sun, 2 Apr 2023 08:37:35 +0700 Subject: [PATCH] stremiox: fix homepage --- StremioX/src/main/kotlin/com/hexated/Stremio.kt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/StremioX/src/main/kotlin/com/hexated/Stremio.kt b/StremioX/src/main/kotlin/com/hexated/Stremio.kt index 51a74693..ce2a85e5 100644 --- a/StremioX/src/main/kotlin/com/hexated/Stremio.kt +++ b/StremioX/src/main/kotlin/com/hexated/Stremio.kt @@ -26,7 +26,7 @@ class Stremio : MainAPI() { val lists = mutableListOf() res.catalogs.forEach { catalog -> catalog.toHomePageList(this)?.let { - lists.add(it) + if(it.list.isNotEmpty()) lists.add(it) } } return HomePageResponse( @@ -110,7 +110,7 @@ class Stremio : MainAPI() { } } return HomePageList( - name ?: id, + "$type - ${name ?: id}", entries ) } @@ -121,7 +121,9 @@ class Stremio : MainAPI() { val name: String, val id: String, val poster: String?, + val background: String?, val description: String?, + val imdbRating: String?, val type: String?, val videos: List