Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

update VIDEO_EXTENSIONS list

Abhinav958c2215fc38
diff --git a/apps/photos/src/utils/file/livePhoto.ts b/apps/photos/src/utils/file/livePhoto.ts
index da0fb4f326..92fb311b14 100644
--- a/apps/photos/src/utils/file/livePhoto.ts
+++ b/apps/photos/src/utils/file/livePhoto.ts
@@ -27,12 +27,13 @@ const VIDEO_EXTENSIONS = [
'avi',
'ogv',
'mpg',
+ 'mp',
];
export function getFileTypeFromExtensionForLivePhotoClustering(
filename: string
) {
- const extension = getFileExtension(filename);
+ const extension = getFileExtension(filename)?.toLowerCase();
if (IMAGE_EXTENSIONS.includes(extension)) {
return FILE_TYPE.IMAGE;
} else if (VIDEO_EXTENSIONS.includes(extension)) {