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
This commit is contained in:
sebastjanartic 2025-09-02 16:58:01 +00:00
parent 843f02a524
commit ce3f1d59d3

View File

@ -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]);