Open gorgulenkozxc opened 1 year ago
I'm struggling with something similar.
I'm not getting the 410 response (the minimal trigger does work on my pc), but when I try to pipe the stream it downloads a file with no audio streams (checked with ffprobe).
The funny thing is, it only happens with Youtube Music videos. Any other type of video works just fine. Maybe it's just a mere coincidense, but the fact both issues are related to YT Music in the same period of time seems quite telling.
Maybe there's something going on in the backend of Youtube Music?
const fs = require("fs");
const ytdl = require("ytdl-core");
const ytmusic = fs.createWritableStream("./queen.mp4");
const notytm = fs.createWritableStream("./playstation.mp4");
// YT Music (running "ffprobe -hide_banner ./queen.mp4" will show there is no audio stream, only a video stream)
ytdl("bdf_ll68Z8o").pipe(ytmusic).on("finish", () => console.log("Done YT Music"));
// Normal YT (ffprobe will show both audio and video streams for this one, and will work fine if you open it)
ytdl("4xM5xP2xMiI").pipe(notytm).on("finish", () => console.log("Done Normal YT"));
Most probably is caused from ip rate limiting cutting down your bot. Restarting server and obtaining new ip worked for me
I'm having same 410 error. It seems like it only occurs to certain YouTube videos (I don't exactly know why). I would love to see the fix for this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Stack trace
Minimal trigger for error:
First of all:
ytdl-core@latest
Problem:
The title doesn't quite fit the real problem. It's not the subdomain
music
issue, but the issue of lack of video footage. If there is a video in the link, there is no error. So the question is, how do I download the music in this case?