diff --git a/packages/backend/src/core/SearchService.ts b/packages/backend/src/core/SearchService.ts index 9b9ae27739..e510abf901 100644 --- a/packages/backend/src/core/SearchService.ts +++ b/packages/backend/src/core/SearchService.ts @@ -34,6 +34,7 @@ type Q = { op: 'or', qs: Q[] } | { op: 'not', q: Q }; +// Sync with consts.ts and const.ts const fileTypes = { image: [ 'image/webp', @@ -42,12 +43,20 @@ const fileTypes = { 'image/avif', 'image/apng', 'image/gif', + 'image/bmp', + 'image/tiff', + 'image/x-icon', ], video: [ 'video/mp4', 'video/webm', 'video/mpeg', 'video/x-m4v', + 'video/ogg', + 'video/quicktime', + 'video/3gpp', + 'video/3gpp2', + 'video/x-matroska', ], audio: [ 'audio/mpeg', @@ -58,14 +67,9 @@ const fileTypes = { 'audio/opus', 'audio/ogg', 'audio/x-m4a', - 'audio/mod', - 'audio/s3m', - 'audio/xm', - 'audio/it', - 'audio/x-mod', - 'audio/x-s3m', - 'audio/x-xm', - 'audio/x-it', + 'audio/mp4', + 'audio/x-flac', + 'audio/vnd.wave', ], // Keep in sync with frontend-shared/js/const.ts module: [