Update video display to exclude individual artist content
Modify the NetflixGrid component to filter out videos tagged with "FOLX STADL" or "FOLXSTADL", grouping remaining videos by performer. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 074b0e4c-6171-43bd-aa98-f9e04623ca14 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/074b0e4c-6171-43bd-aa98-f9e04623ca14/DVZN4Rp
This commit is contained in:
parent
ff7660be82
commit
1152c317fb
@ -57,14 +57,14 @@ export default function NetflixGrid({ videos, isLoading }: NetflixGridProps) {
|
||||
{
|
||||
title: "Recently Added",
|
||||
videos: (() => {
|
||||
// Filter videos from "Geschichte des Liedes" collection
|
||||
const geschichteVideos = videos.filter(video =>
|
||||
video.title.includes("Geschichte des Liedes")
|
||||
// Filter videos that are NOT FOLX STADL (individual artists)
|
||||
const artistVideos = videos.filter(video =>
|
||||
!video.title.includes("FOLX STADL") && !video.title.includes("FOLXSTADL")
|
||||
);
|
||||
|
||||
// Group by performer/artist (extract performer name before " - ")
|
||||
const performerGroups: { [key: string]: typeof videos } = {};
|
||||
geschichteVideos.forEach(video => {
|
||||
artistVideos.forEach(video => {
|
||||
const performer = video.title.split(" - ")[0] || "Unknown";
|
||||
if (!performerGroups[performer]) {
|
||||
performerGroups[performer] = [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user