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
This commit is contained in:
parent
679bee3f45
commit
b054a0c2d9
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user