From 4827537f570edbe2a5decba79ed8d9d79a543d94 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Wed, 25 Oct 2023 21:22:22 -0400 Subject: [PATCH] Fix for feed when no videos are loaded --- .../src/lib/Screens/Home/VideoListRow.svelte | 59 +++++++++++-------- 1 file changed, 36 insertions(+), 23 deletions(-) diff --git a/playlet-web/src/lib/Screens/Home/VideoListRow.svelte b/playlet-web/src/lib/Screens/Home/VideoListRow.svelte index 2a9d39eb..639b2cf5 100644 --- a/playlet-web/src/lib/Screens/Home/VideoListRow.svelte +++ b/playlet-web/src/lib/Screens/Home/VideoListRow.svelte @@ -124,7 +124,12 @@ try { const result = await invidiousApi.makeRequest(feedSource); if (!result) { - return; + feedSource.state.loadState = FeedLoadState.Error; + feedSourcesIndex++; + if (feedSourcesIndex >= feedSources.length) { + feedLoadState = FeedLoadState.Loaded; + } + continue; } const hasContinuation = !!result.continuation; @@ -225,26 +230,34 @@ } -
- {feed.title} -
- +{/if}