fix chrome

This commit is contained in:
theluyuan 2023-06-14 22:12:10 +08:00
parent 2a14ef0c2b
commit 00a5eb7c9c

View File

@ -10,7 +10,7 @@ function seep(time){
} }
function dow(info,callback){ function dow(info,callback){
const lux = spawn("./bin/yt-dlp.exe", ['--cookies-from-browser', 'edge', '-P', info.save, '-o', info.title + '.mp4', info.url]) const lux = spawn("./bin/yt-dlp.exe", ['--cookies-from-browser', 'chrome', '-P', info.save, '-o', info.title + '.mp4', info.url])
lux.stdout.on('data', (data) => { lux.stdout.on('data', (data) => {
console.log(String(data)) console.log(String(data))
callback(String(data),false) callback(String(data),false)