aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorlambdacastix <castix@autistici.org>2021-07-11 22:41:44 +0000
committerlambdacastix <castix@autistici.org>2021-07-11 22:41:44 +0000
commite622db0578bd46b2fd31fc23beb5aebcea2caa65 (patch)
tree9e2baac207d2847630b9a5da5739e68cbf5252c5 /server
parentdeecf33724bb92e74dcd5d574cf82b7d8912dc41 (diff)
downloadPeerTube-e622db0578bd46b2fd31fc23beb5aebcea2caa65.tar.gz
PeerTube-e622db0578bd46b2fd31fc23beb5aebcea2caa65.tar.zst
PeerTube-e622db0578bd46b2fd31fc23beb5aebcea2caa65.zip
add support to another wav mimetype
```bash $ file --mime-type file.wav file.wav: audio/x-wav $ file file.wav file.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz ``` note: aac had a `'LEFT-TO-RIGHT MARK' (U+200E)` that I removed too
Diffstat (limited to 'server')
-rw-r--r--server/initializers/constants.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index cd00b73d5..ab59320eb 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -448,9 +448,10 @@ const MIMETYPES = {
448 'audio/ogg': '.ogg', 448 'audio/ogg': '.ogg',
449 'audio/x-ms-wma': '.wma', 449 'audio/x-ms-wma': '.wma',
450 'audio/wav': '.wav', 450 'audio/wav': '.wav',
451 'audio/x-wav': '.wav',
451 'audio/x-flac': '.flac', 452 'audio/x-flac': '.flac',
452 'audio/flac': '.flac', 453 'audio/flac': '.flac',
453 'audio/aac': '.aac', 454 'audio/aac': '.aac',
454 'audio/m4a': '.m4a', 455 'audio/m4a': '.m4a',
455 'audio/mp4': '.m4a', 456 'audio/mp4': '.m4a',
456 'audio/x-m4a': '.m4a', 457 'audio/x-m4a': '.m4a',