This commit is contained in:
Omer Sabic 2024-08-10 23:53:55 +02:00
parent f75783569e
commit 661f93350f

View File

@ -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;