fix
This commit is contained in:
parent
f75783569e
commit
661f93350f
@ -501,7 +501,7 @@ function delay(time) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function getVideoWithCaptions(video_url) {
|
export async function getVideoWithCaptions(video_url) {
|
||||||
const info = await ytdl.getInfo(video_url);
|
const info = await ytdl.getInfo(video_url, {agent});
|
||||||
const tracks = info
|
const tracks = info
|
||||||
.player_response.captions
|
.player_response.captions
|
||||||
.playerCaptionsTracklistRenderer.captionTracks;
|
.playerCaptionsTracklistRenderer.captionTracks;
|
||||||
|
Loading…
Reference in New Issue
Block a user