From e9b38db8b42cf5204cadab6c2d995bee2c294d60 Mon Sep 17 00:00:00 2001 From: tapframe Date: Sun, 16 Nov 2025 17:26:37 +0530 Subject: [PATCH] catalog capping fix --- src/screens/CatalogScreen.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/screens/CatalogScreen.tsx b/src/screens/CatalogScreen.tsx index 61ca8506..aa74637f 100644 --- a/src/screens/CatalogScreen.tsx +++ b/src/screens/CatalogScreen.tsx @@ -509,9 +509,11 @@ const CatalogScreen: React.FC = ({ route, navigation }) => { let nextHasMore = false; try { const svcHasMore = addonId ? stremioService.getCatalogHasMore(addonId, type, id) : undefined; - nextHasMore = typeof svcHasMore === 'boolean' ? svcHasMore : (catalogItems.length >= 50); + // If service explicitly provides hasMore, use it; otherwise assume there's more if we got any items + // This handles addons with different page sizes (not just 50 items per page) + nextHasMore = typeof svcHasMore === 'boolean' ? svcHasMore : (catalogItems.length > 0); } catch { - nextHasMore = catalogItems.length >= 50; + nextHasMore = catalogItems.length > 0; } setHasMore(nextHasMore); logger.log('[CatalogScreen] Updated items and hasMore', {