ytdl-core
Advanced tools
Comparing version 0.7.4 to 0.7.5
@@ -126,2 +126,8 @@ var format = require('url').format; | ||
var info = config.args; | ||
if (info.status === 'fail') { | ||
var msg = info.errorcode && info.reason ? | ||
'Code ' + info.errorcode + ': ' + info.reason : 'Video not found'; | ||
callback(new Error(msg)); | ||
return; | ||
} | ||
@@ -151,3 +157,3 @@ // Split some keys by commas. | ||
info.formats = util.parseFormats(info); | ||
if (info.status === 'fail' || !info.formats.length) { | ||
if (!info.formats.length) { | ||
callback(new Error('Video not found')); | ||
@@ -154,0 +160,0 @@ return; |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"repository": { | ||
@@ -12,0 +12,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7399055
31146