little-media-box
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "little-media-box", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -233,5 +233,9 @@ const { ffmpeg } = require('./ffmpeg') | ||
this.inactive() | ||
info.format.filename = info.format.filename === 'pipe:0' ? | ||
path.basename(this.uri) : | ||
info.format.filename | ||
if (info && info.format) { | ||
info.format.filename = info.format.filename === 'pipe:0' | ||
? path.basename(this.uri) | ||
: info.format.filename | ||
} | ||
callback(err, info) | ||
@@ -238,0 +242,0 @@ }) |
2714090
3424