Hexer10 / youtube_explode_dart

Dart library to interact with many Youtube APIs
https://pub.dev/packages/youtube_explode_dart
BSD 3-Clause "New" or "Revised" License
299 stars 122 forks source link

Getting subtitles doesnt work #257

Closed CDrosos closed 9 months ago

CDrosos commented 11 months ago

Im not sure if im doing something wrong but i cant get subtitles with this code

  var yt = YoutubeExplode();

  var trackManifest = await yt.videos.closedCaptions.getManifest('_QdPW8JrYzQ')

  var trackInfo = trackManifest .getByLanguage('en'); // Get english caption.

While trackManifest has en caption if i check through var tracksInfo = trackManifest.tracks;

if then i run trackManifest .getByLanguage('en'); i get nothing

Hexer10 commented 10 months ago

Do you still have this issue? I cannot reproduce it on my end and now the video is private.

CDrosos commented 10 months ago

i wasnt able to make it work but now i get subtitles from trackManifest.tracks. i dont use .getByLanguage() anymore