bunny.ts: smart generateSignedUrl checks S3 migration status (folxvideos vs Bunny fallback)

This commit is contained in:
2026-06-07 15:36:07 +02:00
parent 26de8896c5
commit 55df1e27f0
2 changed files with 65 additions and 2 deletions
+3
View File
@@ -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