fent / node-ytdl-core

YouTube video downloader in javascript.
MIT License
4.54k stars 803 forks source link

Bug: doesn't work under Windows 10. #1174

Open santi100a opened 1 year ago

santi100a commented 1 year ago

Bug: doesn't work under Windows 10.

This is my code:

const ytdl = require('ytdl-core');
function downloadVideo(url, options, writeStream = null) {
    const readStream = ytdl(url.toString(), options || { quality: 18 });
    writeStream && writeStream.pipe(writeStream);
    return readStream;
}

exports.downloadVideo = downloadVideo;

I'm getting good audio under Linux (Termux), but no audio at all under Windows. I checked, and I think whether or not FFMPEG is installed doesn't matter.

santi100a commented 1 year ago

1174

santi100a commented 1 year ago

No one is listening... :(

24amesquir commented 1 year ago

try npm update ytdl-core or you might need to use await if it is working on linux but not windows it is probally either your ytdl-core is outdated or windows is missing write permissions