Add more media file extensions

This commit is contained in:
DC
2016-04-27 06:22:50 -07:00
parent bde5dc14c3
commit ade6c1e4a0

View File

@@ -16,12 +16,12 @@ function isPlayable (file) {
function isVideo (file) { function isVideo (file) {
var ext = path.extname(file.name).toLowerCase() var ext = path.extname(file.name).toLowerCase()
return ['.mp4', '.m4v', '.webm', '.mov', '.mkv'].indexOf(ext) !== -1 return ['.mp4', '.m4v', '.webm', '.mov', '.mkv', '.avi'].indexOf(ext) !== -1
} }
function isAudio (file) { function isAudio (file) {
var ext = path.extname(file.name).toLowerCase() var ext = path.extname(file.name).toLowerCase()
return ['.mp3', '.aac', '.ogg', '.wav'].indexOf(ext) !== -1 return ['.mp3', '.aac', '.ogg', '.wav', '.ac3'].indexOf(ext) !== -1
} }
function isPlayableTorrent (torrentSummary) { function isPlayableTorrent (torrentSummary) {