mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-20 10:57:35 +02:00
Add support for WMA and AIFF audio files #449, add remove orphan streams, clean up audio mime type logic
This commit is contained in:
parent
6d823f4e42
commit
5d305c96ad
11 changed files with 75 additions and 29 deletions
|
@ -31,4 +31,17 @@ module.exports.PlayMethod = {
|
|||
DIRECTSTREAM: 1,
|
||||
TRANSCODE: 2,
|
||||
LOCAL: 3
|
||||
}
|
||||
|
||||
module.exports.AudioMimeType = {
|
||||
MP3: 'audio/mpeg',
|
||||
M4B: 'audio/mpeg',
|
||||
M4A: 'audio/mpeg',
|
||||
MP4: 'audio/mp4',
|
||||
OGG: 'audio/ogg',
|
||||
OPUS: 'audio/ogg',
|
||||
AAC: 'audio/aac',
|
||||
FLAC: 'audio/flac',
|
||||
WMA: 'audio/x-ms-wma',
|
||||
AIFF: 'audio/x-aiff'
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
const globals = {
|
||||
SupportedImageTypes: ['png', 'jpg', 'jpeg', 'webp'],
|
||||
SupportedAudioTypes: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'mp4', 'aac'],
|
||||
SupportedAudioTypes: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'mp4', 'aac', 'wma', 'aiff'],
|
||||
SupportedEbookTypes: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'],
|
||||
TextFileTypes: ['txt', 'nfo'],
|
||||
MetadataFileTypes: ['opf', 'abs', 'xml']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue