diff --git a/lib/youtube-dl.js b/lib/youtube-dl.js index 6711044..8b81ea5 100644 --- a/lib/youtube-dl.js +++ b/lib/youtube-dl.js @@ -120,7 +120,7 @@ function call(video, args1, args2, options, callback) { if (stderr) { // Try once to download video if no subtitles available - if (!options.nocc && isNoSubsRegex.test(stderr)) { + if (!options.nosubs && isNoSubsRegex.test(stderr)) { var cleanupOpt = opt[1].reverse(); subs.map(function map(item) { @@ -128,7 +128,7 @@ function call(video, args1, args2, options, callback) { if (target > -1) { cleanupOpt.splice(target, 1); } }); - options.nocc = true; + options.nosubs = true; return call(video, args1, cleanupOpt.reverse(), options, callback);