Add logging to display video counts on the FOLX STADL page

Add console logs to FolxStadlPage.tsx to display the total number of videos loaded and the number of FOLX STADL videos found, including sample titles for debugging.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 45a1dcfc-f8a2-475a-a6b9-96fbb841dc27
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/60d372ff-2c10-46c7-b01b-10c3435136b0/45a1dcfc-f8a2-475a-a6b9-96fbb841dc27/HUaKUr1
This commit is contained in:
sebastjanartic 2025-09-17 08:08:48 +00:00
parent 7a545062ac
commit ecd5a8447c
2 changed files with 8 additions and 1 deletions

View File

@ -16,7 +16,7 @@ localPort = 5000
externalPort = 80 externalPort = 80
[[ports]] [[ports]]
localPort = 45029 localPort = 37975
externalPort = 3000 externalPort = 3000
[env] [env]

View File

@ -27,11 +27,18 @@ export default function FolxStadlPage() {
}); });
const videos = data?.videos || []; const videos = data?.videos || [];
console.log('📺 FolxStadlPage: Total videos loaded:', videos.length);
// Filter all FOLX STADL videos (including all seasons and formats) // Filter all FOLX STADL videos (including all seasons and formats)
const folxStadlVideos = videos.filter(video => const folxStadlVideos = videos.filter(video =>
video.title.includes("FOLX STADL") || video.title.includes("FOLXSTADL") video.title.includes("FOLX STADL") || video.title.includes("FOLXSTADL")
); );
console.log('🎪 FolxStadlPage: FOLX STADL videos found:', folxStadlVideos.length);
// Debug: Show sample titles
if (videos.length > 0) {
console.log('📋 Sample video titles:', videos.slice(0, 5).map(v => v.title));
}
// Pagination logic // Pagination logic
const totalPages = Math.ceil(folxStadlVideos.length / itemsPerPage); const totalPages = Math.ceil(folxStadlVideos.length / itemsPerPage);