Skip to content

Direct "googlevideo.com" cdn link #1045

Answered by imaperson1060
akashdeep000 asked this question in Q&A
Discussion options

You must be logged in to vote

The download links can be found by doing

function getVideoInfo(id) {
    var videoInfo = await yt.dl.getInfo(id);
    var hd;
    try { hd = videoInfo.formats.find(x => x.itag == 22).url; } catch (e) {}
    var sd = videoInfo.formats.find(x => x.itag == 18).url;
    var audio = videoInfo.formats.find(x => x.itag == 140).url;
    var formats = { hd, sd, audio };
    return formats;
}

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@akashdeep000
Comment options

@imaperson1060
Comment options

Answer selected by akashdeep000
Comment options

You must be logged in to vote
1 reply
@imaperson1060
Comment options

Comment options

You must be logged in to vote
1 reply
@imaperson1060
Comment options

Comment options

You must be logged in to vote
2 replies
@AhmedO9473
Comment options

@imaperson1060
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants