From ce3f1d59d30b8046688e2839e16e8f7b17c4327d Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Tue, 2 Sep 2025 16:58:01 +0000 Subject: [PATCH] Update trending videos to show random German songs Modify the Netflix grid to display 10 random "Geschichte des Liedes" videos, excluding specific titles. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1/4DOsXkx --- client/src/components/netflix-grid.tsx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index 988460a..6b5e53b 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -105,8 +105,21 @@ export default function NetflixGrid({ videos, isLoading }: NetflixGridProps) { })() }, { - title: "Trending Now", - videos: videos.slice(0, 12) + title: "Geschichte des Liedes", + videos: (() => { + // Filter videos for Geschichte des Liedes (exclude FOLX STADL and Gipfelstammtisch) + const gdlVideos = videos.filter(video => + !video.title.includes("FOLX STADL") && + !video.title.includes("FOLXSTADL") && + !video.title.includes("Gipfelstammtisch") + ); + + // Shuffle the videos randomly + const shuffled = [...gdlVideos].sort(() => Math.random() - 0.5); + + // Return 10 random videos + return shuffled.slice(0, 10); + })() } ]; }, [videos]);