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
This commit is contained in:
sebastjanartic 2025-09-17 08:50:04 +00:00
parent 9852187ee8
commit f8ebddcf47
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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);
}