torrent poster: support m4v
This commit is contained in:
@@ -7,7 +7,7 @@ function torrentPoster (torrent, cb) {
|
||||
// filter out file formats that the <video> tag definitely can't play
|
||||
var files = torrent.files.filter(function (file) {
|
||||
var extname = path.extname(file.name)
|
||||
return ['.mp4', '.webm', '.mov', '.mkv'].indexOf(extname) !== -1
|
||||
return ['.mp4', '.m4v', '.webm', '.mov', '.mkv'].indexOf(extname) !== -1
|
||||
})
|
||||
|
||||
if (files.length === 0) return cb(new Error('cannot make screenshot for any files in torrent'))
|
||||
|
||||
Reference in New Issue
Block a user