From b054a0c2d9fd3850a89f1045b2433b41f2890929 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 6 Sep 2025 19:17:58 +0000 Subject: [PATCH] Increase number of videos fetched to ensure all videos are accessible Increase the video fetch limit in `findVideoByAnyId` from 200 to 1000 to resolve issues with accessing videos beyond the initial set. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 50f1ae50-8e22-495d-bb42-127d908a9bc5 Replit-Commit-Checkpoint-Type: full_checkpoint --- server/routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes.ts b/server/routes.ts index c53a568..8b4197b 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -30,7 +30,7 @@ export async function findVideoByAnyId(id: string) { // If it's an 8-character short ID, find by short ID if (id.length === 8) { - const allVideos = await storage.getVideos(200, 0); + const allVideos = await storage.getVideos(1000, 0); return allVideos.find(v => v.id.replace(/-/g, '').substring(0, 8) === id); }