From 1931bbc558f47c50b8d9ca594825eb8f7739d7a5 Mon Sep 17 00:00:00 2001 From: tapframe <85391825+tapframe@users.noreply.github.com> Date: Wed, 21 Jan 2026 17:56:38 +0530 Subject: [PATCH] removed special episodes appearing from thisweeksection --- server/sync-service | 1 + src/components/home/ThisWeekSection.tsx | 3 ++- src/screens/CalendarScreen.tsx | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 160000 server/sync-service diff --git a/server/sync-service b/server/sync-service new file mode 160000 index 000000000..e79325ecb --- /dev/null +++ b/server/sync-service @@ -0,0 +1 @@ +Subproject commit e79325ecb97f797801e3499285fca75efb180aa9 diff --git a/src/components/home/ThisWeekSection.tsx b/src/components/home/ThisWeekSection.tsx index 77d0539bb..bcf56b27d 100644 --- a/src/components/home/ThisWeekSection.tsx +++ b/src/components/home/ThisWeekSection.tsx @@ -142,7 +142,8 @@ export const ThisWeekSection = React.memo(() => { if (!thisWeekSection) return []; // Get raw episodes (limit to 60 to be safe for performance but allow grouping) - const rawEpisodes = memoryManager.limitArraySize(thisWeekSection.data, 60); + + const rawEpisodes = memoryManager.limitArraySize(thisWeekSection.data.filter(ep => ep.season !== 0), 60); // Group by series and date const groups: Record = {}; diff --git a/src/screens/CalendarScreen.tsx b/src/screens/CalendarScreen.tsx index 39f5d2da8..fa39875c8 100644 --- a/src/screens/CalendarScreen.tsx +++ b/src/screens/CalendarScreen.tsx @@ -236,8 +236,8 @@ const CalendarScreen = () => { const allEpisodes = React.useMemo(() => { if (!uiReady) return [] as CalendarEpisode[]; const episodes = calendarData.reduce((acc: CalendarEpisode[], section: CalendarSection) => { - // Pre-trim section arrays defensively - const trimmed = memoryManager.limitArraySize(section.data, 500); + + const trimmed = memoryManager.limitArraySize(section.data.filter(ep => ep.season !== 0), 500); return acc.length > 1500 ? acc : [...acc, ...trimmed]; }, [] as CalendarEpisode[]); // Global cap to keep memory bounded