Direct "googlevideo.com" cdn link #1045
-
I can't find a way to get "googlevideo.com" links. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
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;
} |
Beta Was this translation helpful? Give feedback.
-
@imaperson1060, 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;
} for a client-side JS?? |
Beta Was this translation helpful? Give feedback.
-
@imaperson1060,
How do I solve this? |
Beta Was this translation helpful? Give feedback.
-
I ran the library on a React application and had this error:
Since every Node.JS app must have a URL, how do I solve this?? |
Beta Was this translation helpful? Give feedback.
The download links can be found by doing