You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using closedCaptions client to obtain trackInfo, sometimes it doens't work for certain videos and an empty list of trackInfo is returned.
To Reproduce
// get all data from closedCaptions clientfinal trackManifest =await yt.videos.closedCaptions.getManifest(videoId);
// get data for English tracks// ISSUES: some time trackInfo is returned as an empty list. The videos are in English, with transcript available on youtube page. final trackInfo = trackManifest.getByLanguage('en');
// error if can't get track dataif (trackInfo.isEmpty) throwStateError('Could not get Caption Track Info');
// get the first tack based on 1st track datafinal track =await yt.videos.closedCaptions.get(trackInfo.first);
// combine all texts from track's captionsfinalString captionText =
track.captions.map((caption) => caption.text).join(' ');
The text was updated successfully, but these errors were encountered:
Describe the bug
When using closedCaptions client to obtain trackInfo, sometimes it doens't work for certain videos and an empty list of trackInfo is returned.
To Reproduce
The text was updated successfully, but these errors were encountered: