Improve video filtering and display logic for Folx Stadl content
Adds console logs to client/src/pages/FolxStadlPage.tsx to debug and verify the filtering of videos containing "FOLX STADL" and "FOLXSTADL" in their titles and descriptions, including after search queries. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ab9cd02a-d0b2-4288-9ceb-1964d0059648 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/ab9cd02a-d0b2-4288-9ceb-1964d0059648/Y7Evsxg
This commit is contained in:
parent
a7ea13c377
commit
917e6b1a20
@ -42,10 +42,14 @@ export default function FolxStadlPage() {
|
||||
|
||||
const videos = data?.videos || [];
|
||||
|
||||
console.log('Total videos received:', videos.length);
|
||||
|
||||
// Filter all FOLX STADL videos (including all seasons and formats)
|
||||
let folxStadlVideos = videos.filter(video =>
|
||||
video.title.includes("FOLX STADL") || video.title.includes("FOLXSTADL")
|
||||
);
|
||||
|
||||
console.log('FOLX STADL videos after filter:', folxStadlVideos.length);
|
||||
|
||||
// Apply search filter if search query exists
|
||||
if (searchQuery && searchQuery.length >= 2) {
|
||||
@ -54,6 +58,7 @@ export default function FolxStadlPage() {
|
||||
video.title.toLowerCase().includes(searchLower) ||
|
||||
video.description?.toLowerCase().includes(searchLower)
|
||||
);
|
||||
console.log('FOLX STADL videos after search filter:', folxStadlVideos.length);
|
||||
}
|
||||
|
||||
// Pagination logic
|
||||
|
||||
Loading…
Reference in New Issue
Block a user