From 0df47135ee0fd9b2adecc0e800dfcdb2036b5be9 Mon Sep 17 00:00:00 2001 From: Hexated <37908684+hexated@users.noreply.github.com> Date: Tue, 4 Apr 2023 15:38:01 +0700 Subject: [PATCH] Update StremioC.kt --- StremioX/src/main/kotlin/com/hexated/StremioC.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StremioX/src/main/kotlin/com/hexated/StremioC.kt b/StremioX/src/main/kotlin/com/hexated/StremioC.kt index 766c5079..a907c37c 100644 --- a/StremioX/src/main/kotlin/com/hexated/StremioC.kt +++ b/StremioX/src/main/kotlin/com/hexated/StremioC.kt @@ -28,7 +28,7 @@ class StremioC : MainAPI() { mainUrl = mainUrl.fixSourceUrl() val res = tryParseJson(app.get("${mainUrl}/manifest.json").text) ?: return null val lists = mutableListOf() - res.catalogs.forEach { catalog -> + res.catalogs.apmap { catalog -> catalog.toHomePageList(this)?.let { if (it.list.isNotEmpty()) lists.add(it) } @@ -362,4 +362,4 @@ class StremioC : MainAPI() { } } } -} \ No newline at end of file +}