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:
parent
7a545062ac
commit
ecd5a8447c
2
.replit
2
.replit
@ -16,7 +16,7 @@ localPort = 5000
|
||||
externalPort = 80
|
||||
|
||||
[[ports]]
|
||||
localPort = 45029
|
||||
localPort = 37975
|
||||
externalPort = 3000
|
||||
|
||||
[env]
|
||||
|
||||
@ -27,11 +27,18 @@ export default function FolxStadlPage() {
|
||||
});
|
||||
|
||||
const videos = data?.videos || [];
|
||||
console.log('📺 FolxStadlPage: Total videos loaded:', videos.length);
|
||||
|
||||
// Filter all FOLX STADL videos (including all seasons and formats)
|
||||
const folxStadlVideos = videos.filter(video =>
|
||||
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
|
||||
const totalPages = Math.ceil(folxStadlVideos.length / itemsPerPage);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user