Open arcovoltaico opened 6 days ago
solved by using "github:XM4ZE/ytdl-core" }
yep same issue .
The error seems to start in video.getInfo function. when ytdl tries to access relatedVideoData etc
Same issue. But on windows is working fine, with same IP and everything
Describe the bug
My code has been working for months, but since recently, no YouTube video has been downloaded, and I am not even getting any error. I see that the file is created but remains 0 bytes. This has started happening recently in my 2 well-tested different systems, without changing any code, no matter what video you try.
I have tried this fix https://github.com/XM4ZE/ytdl-core , but it's not helping.
My code runs in the main.js Electron.
ytdl.getInfo(url).then((info: videoInfo) => { const formats = ytdl.filterFormats(info.formats, 'audioandvideo'); if (formats.length < 1) { notifyYoutubeDownloadError(id); }
I have tried also the suggested code with the same result : const ytdl = require('@distube/ytdl-core');
Environment