From f8ebddcf47ca3f1032e0c2c4faec4f30eff88f9f Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Wed, 17 Sep 2025 08:50:04 +0000 Subject: [PATCH] Improve video searching by increasing the number of videos retrieved Increase the limit for `storage.getVideos` from 200 to 600 when searching for videos by their 8-character short ID in `server/routes.ts`. 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/ALGurqF --- .replit | 2 +- server/routes.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.replit b/.replit index 0801e05..10701d4 100644 --- a/.replit +++ b/.replit @@ -16,7 +16,7 @@ localPort = 5000 externalPort = 80 [[ports]] -localPort = 40997 +localPort = 33233 externalPort = 3000 [env] diff --git a/server/routes.ts b/server/routes.ts index c53a568..d93cbb1 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(600, 0); return allVideos.find(v => v.id.replace(/-/g, '').substring(0, 8) === id); }