aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index a4d8d8fe7..4656ccdbc 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -484,17 +484,25 @@ const MIMETYPES = {
484 MIMETYPE_EXT: { 484 MIMETYPE_EXT: {
485 'audio/mpeg': '.mp3', 485 'audio/mpeg': '.mp3',
486 'audio/mp3': '.mp3', 486 'audio/mp3': '.mp3',
487
487 'application/ogg': '.ogg', 488 'application/ogg': '.ogg',
488 'audio/ogg': '.ogg', 489 'audio/ogg': '.ogg',
490
489 'audio/x-ms-wma': '.wma', 491 'audio/x-ms-wma': '.wma',
490 'audio/wav': '.wav', 492 'audio/wav': '.wav',
491 'audio/x-wav': '.wav', 493 'audio/x-wav': '.wav',
494
492 'audio/x-flac': '.flac', 495 'audio/x-flac': '.flac',
493 'audio/flac': '.flac', 496 'audio/flac': '.flac',
497
498 'audio/vnd.dlna.adts': '.aac',
494 'audio/aac': '.aac', 499 'audio/aac': '.aac',
500
495 'audio/m4a': '.m4a', 501 'audio/m4a': '.m4a',
496 'audio/mp4': '.m4a', 502 'audio/mp4': '.m4a',
497 'audio/x-m4a': '.m4a', 503 'audio/x-m4a': '.m4a',
504
505 'audio/vnd.dolby.dd-raw': '.ac3',
498 'audio/ac3': '.ac3' 506 'audio/ac3': '.ac3'
499 }, 507 },
500 EXT_MIMETYPE: null as { [ id: string ]: string } 508 EXT_MIMETYPE: null as { [ id: string ]: string }
@@ -1033,6 +1041,8 @@ function buildVideoMimetypeExt () {
1033 // The standard video format used by many Sony and Panasonic HD camcorders. 1041 // The standard video format used by many Sony and Panasonic HD camcorders.
1034 // It is also used for storing high definition video on Blu-ray discs. 1042 // It is also used for storing high definition video on Blu-ray discs.
1035 'video/mp2t': '.mts', 1043 'video/mp2t': '.mts',
1044 'video/vnd.dlna.mpeg-tts': '.mts',
1045
1036 'video/m2ts': '.m2ts', 1046 'video/m2ts': '.m2ts',
1037 1047
1038 // Old formats reliant on MPEG-1/MPEG-2 1048 // Old formats reliant on MPEG-1/MPEG-2