mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-01 00:18:14 +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 = {
|
const SupportedFileTypes = {
|
||||||
image: ['png', 'jpg', 'jpeg', 'webp'],
|
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'],
|
ebook: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'],
|
||||||
info: ['nfo'],
|
info: ['nfo'],
|
||||||
text: ['txt'],
|
text: ['txt'],
|
||||||
|
@ -35,10 +35,11 @@ module.exports.PlayMethod = {
|
|||||||
|
|
||||||
module.exports.AudioMimeType = {
|
module.exports.AudioMimeType = {
|
||||||
MP3: 'audio/mpeg',
|
MP3: 'audio/mpeg',
|
||||||
M4B: 'audio/mpeg',
|
M4B: 'audio/mp4',
|
||||||
M4A: 'audio/mpeg',
|
M4A: 'audio/mp4',
|
||||||
MP4: 'audio/mp4',
|
MP4: 'audio/mp4',
|
||||||
OGG: 'audio/ogg',
|
OGG: 'audio/ogg',
|
||||||
|
OGA: 'audio/ogg',
|
||||||
OPUS: 'audio/ogg',
|
OPUS: 'audio/ogg',
|
||||||
AAC: 'audio/aac',
|
AAC: 'audio/aac',
|
||||||
FLAC: 'audio/flac',
|
FLAC: 'audio/flac',
|
||||||
|
@ -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', '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'],
|
SupportedEbookTypes: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'],
|
||||||
SupportedVideoTypes: ['mp4'],
|
SupportedVideoTypes: ['mp4'],
|
||||||
TextFileTypes: ['txt', 'nfo'],
|
TextFileTypes: ['txt', 'nfo'],
|
||||||
|
Loading…
Reference in New Issue
Block a user