Add:Support for CAF audio files

This commit is contained in:
advplyr 2023-06-05 16:23:40 -05:00
parent c1bcfe8304
commit 5dc4606657
4 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
const SupportedFileTypes = { const SupportedFileTypes = {
image: ['png', 'jpg', 'jpeg', 'webp'], image: ['png', 'jpg', 'jpeg', 'webp'],
audio: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'wav', 'webm', 'webma', 'mka', 'awb'], audio: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'wav', 'webm', 'webma', 'mka', 'awb', 'caf'],
ebook: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'], ebook: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'],
info: ['nfo'], info: ['nfo'],
text: ['txt'], text: ['txt'],

View File

@ -83,7 +83,8 @@ class Stream extends EventEmitter {
AudioMimeType.AIFF, AudioMimeType.AIFF,
AudioMimeType.WEBM, AudioMimeType.WEBM,
AudioMimeType.WEBMA, AudioMimeType.WEBMA,
AudioMimeType.AWB AudioMimeType.AWB,
AudioMimeType.CAF
] ]
} }
get codecsToForceAAC() { get codecsToForceAAC() {

View File

@ -48,7 +48,8 @@ module.exports.AudioMimeType = {
WEBM: 'audio/webm', WEBM: 'audio/webm',
WEBMA: 'audio/webm', WEBMA: 'audio/webm',
MKA: 'audio/x-matroska', MKA: 'audio/x-matroska',
AWB: 'audio/amr-wb' AWB: 'audio/amr-wb',
CAF: 'audio/x-caf'
} }
module.exports.VideoMimeType = { module.exports.VideoMimeType = {

View File

@ -1,6 +1,6 @@
const globals = { const globals = {
SupportedImageTypes: ['png', 'jpg', 'jpeg', 'webp'], SupportedImageTypes: ['png', 'jpg', 'jpeg', 'webp'],
SupportedAudioTypes: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'wav', 'webm', 'webma', 'mka', 'awb'], SupportedAudioTypes: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'wav', 'webm', 'webma', 'mka', 'awb', 'caf'],
SupportedEbookTypes: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'], SupportedEbookTypes: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'],
SupportedVideoTypes: ['mp4'], SupportedVideoTypes: ['mp4'],
TextFileTypes: ['txt', 'nfo'], TextFileTypes: ['txt', 'nfo'],