Add more media file extensions
This commit is contained in:
parent
bde5dc14c3
commit
ade6c1e4a0
1 changed files with 2 additions and 2 deletions
|
|
@ -16,12 +16,12 @@ function isPlayable (file) {
|
|||
|
||||
function isVideo (file) {
|
||||
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) {
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue