Increase the number of videos loaded to improve content visibility

Update API query to fetch more videos, increasing the limit from 200 to 600 to ensure comprehensive content display across pages.

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/SSOTLMR
This commit is contained in:
sebastjanartic 2025-09-17 08:36:52 +00:00
parent ecd5a8447c
commit 675e61c1da
5 changed files with 4 additions and 11 deletions

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -22,23 +22,16 @@ export default function FolxStadlPage() {
const itemsPerPage = 10; const itemsPerPage = 10;
const { data, isLoading } = useQuery<{videos: Video[], total: number}>({ const { data, isLoading } = useQuery<{videos: Video[], total: number}>({
queryKey: ['/api/videos?limit=200'], queryKey: ['/api/videos?limit=600'],
select: (response) => response || { videos: [], total: 0 } select: (response) => response || { videos: [], total: 0 }
}); });
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);

View File

@ -22,7 +22,7 @@ export default function GeschichteLiedPage() {
const itemsPerPage = 10; const itemsPerPage = 10;
const { data, isLoading } = useQuery<{videos: Video[], total: number}>({ const { data, isLoading } = useQuery<{videos: Video[], total: number}>({
queryKey: ['/api/videos?limit=200'], queryKey: ['/api/videos?limit=600'],
select: (response) => response || { videos: [], total: 0 } select: (response) => response || { videos: [], total: 0 }
}); });

View File

@ -22,7 +22,7 @@ export default function GipfelstammtischPage() {
const itemsPerPage = 10; const itemsPerPage = 10;
const { data, isLoading } = useQuery<{videos: Video[], total: number}>({ const { data, isLoading } = useQuery<{videos: Video[], total: number}>({
queryKey: ['/api/videos?limit=200'], queryKey: ['/api/videos?limit=600'],
select: (response) => response || { videos: [], total: 0 } select: (response) => response || { videos: [], total: 0 }
}); });