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 client
final 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 data
if (trackInfo.isEmpty) throw StateError('Could not get Caption Track Info');
// get the first tack based on 1st track data
final track = await yt.videos.closedCaptions.get(trackInfo.first);
// combine all texts from track's captions
final String captionText =
track.captions.map((caption) => caption.text).join(' ');
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