Add ogv as a video type

This commit is contained in:
DC
2016-05-10 22:30:51 -07:00
parent 95019453fd
commit 905cc527d0

View File

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