diff --git a/client/plugins/constants.js b/client/plugins/constants.js index 39a383c5..4a26bd5c 100644 --- a/client/plugins/constants.js +++ b/client/plugins/constants.js @@ -1,6 +1,6 @@ const SupportedFileTypes = { image: ['png', 'jpg', 'jpeg', 'webp'], - audio: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'wav', 'webm', 'webma', 'mka'], + audio: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'wav', 'webm', 'webma', 'mka', 'awb'], ebook: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'], info: ['nfo'], text: ['txt'], diff --git a/server/objects/Stream.js b/server/objects/Stream.js index 9558dd11..5d6442dc 100644 --- a/server/objects/Stream.js +++ b/server/objects/Stream.js @@ -82,7 +82,8 @@ class Stream extends EventEmitter { AudioMimeType.WMA, AudioMimeType.AIFF, AudioMimeType.WEBM, - AudioMimeType.WEBMA + AudioMimeType.WEBMA, + AudioMimeType.AWB ] } get codecsToForceAAC() { diff --git a/server/utils/constants.js b/server/utils/constants.js index 66c87d06..a650c7ab 100644 --- a/server/utils/constants.js +++ b/server/utils/constants.js @@ -47,7 +47,8 @@ module.exports.AudioMimeType = { AIFF: 'audio/x-aiff', WEBM: 'audio/webm', WEBMA: 'audio/webm', - MKA: 'audio/x-matroska' + MKA: 'audio/x-matroska', + AWB: 'audio/amr-wb' } module.exports.VideoMimeType = { diff --git a/server/utils/globals.js b/server/utils/globals.js index f4bbf0a2..71c1c2c0 100644 --- a/server/utils/globals.js +++ b/server/utils/globals.js @@ -1,6 +1,6 @@ const globals = { SupportedImageTypes: ['png', 'jpg', 'jpeg', 'webp'], - SupportedAudioTypes: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'wav', 'webm', 'webma', 'mka'], + SupportedAudioTypes: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'wav', 'webm', 'webma', 'mka', 'awb'], SupportedEbookTypes: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'], SupportedVideoTypes: ['mp4'], TextFileTypes: ['txt', 'nfo'],