Add:Support for OGA file extension #804, Update:Mime type for m4b and m4a to audio/mp4

This commit is contained in:
advplyr 2022-07-14 18:32:00 -05:00
parent ccc291067d
commit 653019921e
3 changed files with 5 additions and 4 deletions

View File

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

View File

@ -35,10 +35,11 @@ module.exports.PlayMethod = {
module.exports.AudioMimeType = {
MP3: 'audio/mpeg',
M4B: 'audio/mpeg',
M4A: 'audio/mpeg',
M4B: 'audio/mp4',
M4A: 'audio/mp4',
MP4: 'audio/mp4',
OGG: 'audio/ogg',
OGA: 'audio/ogg',
OPUS: 'audio/ogg',
AAC: 'audio/aac',
FLAC: 'audio/flac',

View File

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