Separate Gipfelstammtisch content into its own category

Refactor NetflixGrid component to create a dedicated "GIPFELSTAMMTISCH" category, excluding it from the "ODDAJE" section.

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/DVlzRoR
This commit is contained in:
sebastjanartic 2025-09-04 06:49:15 +00:00
parent 690556a961
commit c55e0f1e8c

View File

@ -100,12 +100,12 @@ export default function NetflixGrid({ videos, isLoading }: NetflixGridProps) {
{
title: "ODDAJE",
videos: (() => {
// Filter content that are specifically shows/episodes
// Filter content that are specifically shows/episodes (EXCLUDING Gipfelstammtisch)
const showVideos = videos.filter(video =>
video.title.toLowerCase().includes("oddaja") ||
video.title.toLowerCase().includes("sendung") ||
video.title.toLowerCase().includes("episode") ||
video.title.includes("Gipfelstammtisch")
(video.title.toLowerCase().includes("oddaja") ||
video.title.toLowerCase().includes("sendung") ||
video.title.toLowerCase().includes("episode")) &&
!video.title.includes("Gipfelstammtisch") // EXCLUDE Gipfelstammtisch from ODDAJE
);
// Shuffle the show videos randomly
@ -115,6 +115,21 @@ export default function NetflixGrid({ videos, isLoading }: NetflixGridProps) {
return shuffled.slice(0, 10);
})()
},
{
title: "GIPFELSTAMMTISCH",
videos: (() => {
// Filter videos that specifically contain "Gipfelstammtisch" in title
const gipfelVideos = videos.filter(video =>
video.title.includes("Gipfelstammtisch")
);
// Shuffle the Gipfelstammtisch videos randomly
const shuffled = [...gipfelVideos].sort(() => Math.random() - 0.5);
// Return 10 random videos from the GIPFELSTAMMTISCH collection
return shuffled.slice(0, 10);
})()
},
{
title: "DIE Geschichte des Liedes",
videos: (() => {