diff --git a/lib/engines/you-get.js b/lib/engines/you-get.js index 7a4029a..cd83a03 100644 --- a/lib/engines/you-get.js +++ b/lib/engines/you-get.js @@ -4,6 +4,9 @@ const { download } = require('./utils'); module.exports = (options, callback) => { let op = `-k ${options.playlist !== '0' ? '--playlist' : ''}`; + if (options.proxy) { + op += ` -x ${options.proxy}`; + } if (options.name) { op += ` -O ${options.name}`; } @@ -19,4 +22,4 @@ module.exports = (options, callback) => { } download(`you-get ${op} '${options.url}' >> logs/you-get.log`, callback); -} \ No newline at end of file +}