fix regression
This commit is contained in:
@@ -9,8 +9,10 @@ catch (e) {
|
|||||||
console.warn("settings.json not found")
|
console.warn("settings.json not found")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isWindows = process.platform === 'win32';
|
||||||
|
|
||||||
const download = (socket, url) => {
|
const download = (socket, url) => {
|
||||||
const ytldp = spawn('./lib/yt-dlp.exe',
|
const ytldp = spawn(`./lib/yt-dlp${isWindows ? '.exe' : ''}`,
|
||||||
['-o', `${settings.download_path || './downloads/'}%(title)s.%(ext)s`, url]
|
['-o', `${settings.download_path || './downloads/'}%(title)s.%(ext)s`, url]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user