From 8aa4de75228006bd0e702aef803e5e3ec620aedf Mon Sep 17 00:00:00 2001 From: Kai Date: Thu, 22 May 2025 11:28:59 -0500 Subject: [PATCH] make sure the plugin supports shorts content Changelog: added --- .../main/java/com/futo/platformplayer/states/StatePlatform.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/futo/platformplayer/states/StatePlatform.kt b/app/src/main/java/com/futo/platformplayer/states/StatePlatform.kt index 0bb8fb85..f4460c3a 100644 --- a/app/src/main/java/com/futo/platformplayer/states/StatePlatform.kt +++ b/app/src/main/java/com/futo/platformplayer/states/StatePlatform.kt @@ -790,7 +790,7 @@ class StatePlatform { pagerResult = client.getChannelContents(channelUrl, ResultCapabilities.TYPE_MIXED, ResultCapabilities.ORDER_CHONOLOGICAL); } } else { - pagerResult = if (type == ResultCapabilities.TYPE_SHORTS) { + pagerResult = if (type == ResultCapabilities.TYPE_SHORTS && clientCapabilities.hasType(ResultCapabilities.TYPE_SHORTS)) { client.getChannelContents(channelUrl, ResultCapabilities.TYPE_SHORTS, ResultCapabilities.ORDER_CHONOLOGICAL); } else { EmptyPager()