Fix the captions downloading

This commit is contained in:
2026-03-02 02:46:51 -06:00
parent 29fdf6a2f3
commit 39709662af
3 changed files with 5 additions and 4 deletions

View File

@@ -14,6 +14,6 @@
}
],
"name": "Tesses.YouTubeDownloader",
"version": "1.0.0.4-prod",
"version": "1.0.0.5-prod",
"icon": "icon.png"
}

View File

@@ -1341,7 +1341,7 @@ class TYTD.Downloader {
if(e == null)
{
var req = this.ManifestRequest(id);
this.DownloadCaptions(req);
this.PutVideoInfo(req.playerResponse.videoDetails);
}
}
@@ -1350,6 +1350,7 @@ class TYTD.Downloader {
private DownloadCaptions(req)
{
const tracks = req.playerResponse.captions.playerCaptionsTracklistRenderer.captionTracks;
if(TypeIsList(tracks))
{
each(var item : tracks)
@@ -1727,7 +1728,7 @@ class TYTD.Downloader {
{
throw new VideoDownloadError(id, "adaptiveFormats is missing");
}
this.DownloadCaptions(jsonResp);
return jsonResp;
}
}