mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
Add error handling for video optimization in DriveService
This commit is contained in:
parent
4ab3abaa14
commit
7ce8d0de44
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue