Hi there! I'm new to this, I'm trying to retrieve a video URL with no audio, and this is the code I've tried:
ytdl.getInfo("https://www.youtube.com/watch?v=1N3vUlC5354")
.then(res => response = res)
.then(function () {
console.log(response.formats[3].url); //Video
console.log(response.formats[20].url); //Audio
})
They output a link each, but visiting that link returns a 403 Error in the normal browser.
I've looked into the problem, and it's supposed to be 'IP locked', but I'm using the same IP address, as I'm running Node from my local machine + the browser on my local machine.
Why is this / am I doing something wrong?
Thanks
Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.71. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
does it work if you download these using ytdl?
My main issue is I鈥檓 attempting to make a YouTube downloading proxy, where it gets the link and uploads that end file to Google Drive. Does that mean it wouldn鈥檛 work?
ytdl returns a stream, you can download/upload that anywhere
Had the same issue, just update library to latest version.
Urls can be restricted on more than just IP, see https://github.com/ytdl-org/youtube-dl/blob/master/README.md#i-extracted-a-video-url-with--g-but-it-does-not-play-on-another-machine--in-my-web-browser
So could be because different cookies / UA header
Most helpful comment
Issue-Label Bot is automatically applying the label
questionto this issue, with a confidence of 0.71. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!Links: app homepage, dashboard and code for this bot.