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:
parent
ecd5a8447c
commit
675e61c1da
2
.replit
2
.replit
@ -16,7 +16,7 @@ localPort = 5000
|
||||
externalPort = 80
|
||||
|
||||
[[ports]]
|
||||
localPort = 37975
|
||||
localPort = 40997
|
||||
externalPort = 3000
|
||||
|
||||
[env]
|
||||
|
||||
BIN
attached_assets/image_1758098121575.png
Normal file
BIN
attached_assets/image_1758098121575.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
@ -22,23 +22,16 @@ export default function FolxStadlPage() {
|
||||
const itemsPerPage = 10;
|
||||
|
||||
const { data, isLoading } = useQuery<{videos: Video[], total: number}>({
|
||||
queryKey: ['/api/videos?limit=200'],
|
||||
queryKey: ['/api/videos?limit=600'],
|
||||
select: (response) => response || { videos: [], total: 0 }
|
||||
});
|
||||
|
||||
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);
|
||||
|
||||
@ -22,7 +22,7 @@ export default function GeschichteLiedPage() {
|
||||
const itemsPerPage = 10;
|
||||
|
||||
const { data, isLoading } = useQuery<{videos: Video[], total: number}>({
|
||||
queryKey: ['/api/videos?limit=200'],
|
||||
queryKey: ['/api/videos?limit=600'],
|
||||
select: (response) => response || { videos: [], total: 0 }
|
||||
});
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ export default function GipfelstammtischPage() {
|
||||
const itemsPerPage = 10;
|
||||
|
||||
const { data, isLoading } = useQuery<{videos: Video[], total: number}>({
|
||||
queryKey: ['/api/videos?limit=200'],
|
||||
queryKey: ['/api/videos?limit=600'],
|
||||
select: (response) => response || { videos: [], total: 0 }
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user