mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix: detection of WebM container (#24182)
This commit is contained in:
@@ -756,7 +756,13 @@ export class MediaService extends BaseService {
|
||||
return false;
|
||||
}
|
||||
|
||||
const name = formatLongName === 'QuickTime / MOV' ? VideoContainer.Mov : (formatName as VideoContainer);
|
||||
const formatLongNameMapping: Record<string, VideoContainer> = {
|
||||
'QuickTime / MOV': VideoContainer.Mov,
|
||||
'Matroska / WebM': VideoContainer.Webm,
|
||||
};
|
||||
|
||||
const name = (formatLongName ? formatLongNameMapping[formatLongName] : undefined) ?? (formatName as VideoContainer);
|
||||
|
||||
return name !== VideoContainer.Mp4 && !ffmpegConfig.acceptedContainers.includes(name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user