1
0
mirror of https://git.boykissers.com/pawkey/pawkey-sk.git synced 2025-12-20 04:04:16 +00:00

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

View File

@@ -160,7 +160,11 @@ export class DriveService {
const alts = await this.generateAlts(path, type, !file.uri);
if (type && type.startsWith('video/')) {
await this.videoProcessingService.webOptimizeVideo(path, type);
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) {