bunny.ts: smart generateSignedUrl checks S3 migration status (folxvideos vs Bunny fallback)
This commit is contained in:
@@ -23,6 +23,9 @@ class VideoSyncService {
|
||||
}
|
||||
|
||||
private async getAllVideos(): Promise<any[]> {
|
||||
// Refresh list of migrated GUIDs from S3 before fetching, so generateSignedUrl picks correct URL
|
||||
try { await this.bunnyService.refreshMigratedGuids(); } catch {}
|
||||
|
||||
let allVideos: any[] = [];
|
||||
let page = 1;
|
||||
const itemsPerPage = 100; // Maximum per request
|
||||
|
||||
Reference in New Issue
Block a user