mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-30 17:59:21 +01:00
Add:Support for OGA file extension #804, Update:Mime type for m4b and m4a to audio/mp4
This commit is contained in:
parent
ccc291067d
commit
653019921e
@ -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'],
|
||||
|
@ -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',
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user