audiobookshelf/server/utils/constants.js

47 lines
698 B
JavaScript

module.exports.ScanResult = {
NOTHING: 0,
ADDED: 1,
UPDATED: 2,
REMOVED: 3,
UPTODATE: 4
}
module.exports.BookCoverAspectRatio = {
STANDARD: 0, // 1.6:1
SQUARE: 1
}
module.exports.BookshelfView = {
STANDARD: 0,
TITLES: 1
}
module.exports.LogLevel = {
TRACE: 0,
DEBUG: 1,
INFO: 2,
WARN: 3,
ERROR: 4,
FATAL: 5,
NOTE: 6
}
module.exports.PlayMethod = {
DIRECTPLAY: 0,
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'
}