Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
fix: fix a regression caused by previous refactorings
Browse files Browse the repository at this point in the history
`urls` variable was not passed to youtubeDl

fixes #230
  • Loading branch information
alirezamirian authored May 11, 2019
1 parent b34babc commit dfed31a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const videoNotAvailable = new RegExp(

const subsRegex = /--write-sub|--write-srt|--srt-lang|--all-subs/;

function youtubeDl(args, options, callback) {
function youtubeDl(urls, args, options, callback) {
let passOver = false;

execFile(ytdlBinary, args, { ...execFileOpts, ...options }, function done(err, stdout, stderr) {
Expand Down Expand Up @@ -216,7 +216,7 @@ function call(urls, args1, args2, options = {}, callback) {
}
}

return youtubeDl(args, options, callback)
return youtubeDl(urls, args, options, callback)
}

/**
Expand Down

0 comments on commit dfed31a

Please sign in to comment.