diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index c8d97c5..528bc30 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -59,7 +59,11 @@ export default function NetflixGrid({ videos, isLoading }: NetflixGridProps) { }, ...(folxStadlVideos.length > 0 ? [{ title: "FOLX STADL", - videos: folxStadlVideos.slice(0, 12) + videos: (() => { + // Shuffle FOLX STADL videos randomly + const shuffled = [...folxStadlVideos].sort(() => Math.random() - 0.5); + return shuffled.slice(0, 10); + })() }] : []), { title: "VIDEO", @@ -78,14 +82,14 @@ export default function NetflixGrid({ videos, isLoading }: NetflixGridProps) { !video.title.includes("Gipfelstammtisch") ); const shuffled = [...fallbackVideos].sort(() => Math.random() - 0.5); - return shuffled.slice(0, 15); + return shuffled.slice(0, 10); } // Shuffle the Geschichte des Liedes VIDEO videos randomly const shuffled = [...videoVideos].sort(() => Math.random() - 0.5); - // Return 15 random videos from the VIDEO collection - return shuffled.slice(0, 15); + // Return 10 random videos from the VIDEO collection + return shuffled.slice(0, 10); })() }, {