Open hypo-thesis opened 4 years ago
I encountered the same issue with another video. In my case, it only happened with a specific quality (720p60), all other qualities worked fine.
What did you mean by stuck? I tried to play this one on my Discord bot and it played for less than a second.
This one also cannot be played before. However, it worked after I promisified ytdl-core
with the following code:
const requestYTDLStream = (url, opts) => new Promise((resolve, reject) => {
const stream = ytdl(url, opts);
stream.on("finish", () => resolve(stream)).on("error", err => reject(err));
});
Maybe this will help, I don't know.
EDIT: Oh and I should mention that this method didn't work for the first link I posted.
EDIT 2: I also found #770 in open issues. This might be related.
What did you mean by stuck? I tried to play this one on my Discord bot and it played for less than a second.
This one also cannot be played before. However, it worked after I promisified
ytdl-core
with the following code:const requestYTDLStream = (url, opts) => new Promise((resolve, reject) => { const stream = ytdl(url, opts); stream.on("finish", () => resolve(stream)).on("error", err => reject(err)); });
Maybe this will help, I don't know.
EDIT: Oh and I should mention that this method didn't work for the first link I posted.
EDIT 2: I also found #770 in open issues. This might be related.
Actually none of the qualities can be downloaded. By stuck I mean it does not throw any error it waits until http time out.
This video works fine with me.
I tried all these videos on ytdl-core 4.1.6 and they all worked fine for my bot. Btw I'm using repl.it, which might affect the results.
it's working for me too. but when the issue first opened, i got an error 🦆
Ytdl version : 4.0.3 Node version : 15.0.1
I cannot download this particular video ( no issues with other videos as of now ). It does not throw any error or anything but it get rather stuck.
My
const video = ytdl(url, { filter: 'videoonly', quality:
highest})
is as :