Add error handling for video optimization in DriveService

This commit is contained in:
PrivateGER 2025-05-29 21:20:46 +02:00
parent 4ab3abaa14
commit 7ce8d0de44
No known key found for this signature in database

View file

@ -160,7 +160,11 @@ export class DriveService {
const alts = await this.generateAlts(path, type, !file.uri);
if (type && type.startsWith('video/')) {
try {
await this.videoProcessingService.webOptimizeVideo(path, type);
} catch (err) {
this.registerLogger.warn(`Video optimization failed: ${err instanceof Error ? err.message : String(err)}`, { error: err });
}
}
if (this.meta.useObjectStorage) {