Add ogv as a video type
This commit is contained in:
@@ -16,12 +16,26 @@ 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', '.avi'].indexOf(ext) !== -1
|
return [
|
||||||
|
'.mp4',
|
||||||
|
'.m4v',
|
||||||
|
'.webm',
|
||||||
|
'.mov',
|
||||||
|
'.mkv',
|
||||||
|
'.avi',
|
||||||
|
'.ogv'
|
||||||
|
].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', '.ac3'].indexOf(ext) !== -1
|
return [
|
||||||
|
'.mp3',
|
||||||
|
'.aac',
|
||||||
|
'.ogg',
|
||||||
|
'.wav',
|
||||||
|
'.ac3'
|
||||||
|
].indexOf(ext) > -1
|
||||||
}
|
}
|
||||||
|
|
||||||
function isPlayableTorrent (torrentSummary) {
|
function isPlayableTorrent (torrentSummary) {
|
||||||
|
|||||||
Reference in New Issue
Block a user