diff --git a/lib/youtube-dl.js b/lib/youtube-dl.js index 9adf8fd..8703f4c 100644 --- a/lib/youtube-dl.js +++ b/lib/youtube-dl.js @@ -95,7 +95,7 @@ function call(video, args1, args2, options, callback) { var opt = [file, args]; - if (isWin) { opt = ['python', [file].concat(args)]; } + if (isWin) { opt = [process.env.PYTHON || 'python', [file].concat(args)]; } // Call youtube-dl. execFile(opt[0], opt[1], options, function(err, stdout, stderr) {