From 39709662af2381b8ff0448238cf06f9515211c97 Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Mon, 2 Mar 2026 02:46:51 -0600 Subject: [PATCH] Fix the captions downloading --- Tesses.YouTubeDownloader.Server/cross.json | 2 +- Tesses.YouTubeDownloader/cross.json | 2 +- Tesses.YouTubeDownloader/src/YouTubeDownloader.tcross | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Tesses.YouTubeDownloader.Server/cross.json b/Tesses.YouTubeDownloader.Server/cross.json index 166708b..50781a2 100644 --- a/Tesses.YouTubeDownloader.Server/cross.json +++ b/Tesses.YouTubeDownloader.Server/cross.json @@ -14,6 +14,6 @@ "project_dependencies": [ "..\/Tesses.YouTubeDownloader" ], - "version": "1.0.0.4-prod", + "version": "1.0.0.5-prod", "compTime": "secure" } \ No newline at end of file diff --git a/Tesses.YouTubeDownloader/cross.json b/Tesses.YouTubeDownloader/cross.json index 69dc74a..5decd19 100644 --- a/Tesses.YouTubeDownloader/cross.json +++ b/Tesses.YouTubeDownloader/cross.json @@ -14,6 +14,6 @@ } ], "name": "Tesses.YouTubeDownloader", - "version": "1.0.0.4-prod", + "version": "1.0.0.5-prod", "icon": "icon.png" } \ No newline at end of file diff --git a/Tesses.YouTubeDownloader/src/YouTubeDownloader.tcross b/Tesses.YouTubeDownloader/src/YouTubeDownloader.tcross index ee12a4a..237a787 100644 --- a/Tesses.YouTubeDownloader/src/YouTubeDownloader.tcross +++ b/Tesses.YouTubeDownloader/src/YouTubeDownloader.tcross @@ -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; } }