mirror of
https://onedev.site.tesses.net/tytd2025
synced 2026-06-01 09:55:34 +00:00
Fix the captions downloading
This commit is contained in:
@@ -14,6 +14,6 @@
|
||||
}
|
||||
],
|
||||
"name": "Tesses.YouTubeDownloader",
|
||||
"version": "1.0.0.4-prod",
|
||||
"version": "1.0.0.5-prod",
|
||||
"icon": "icon.png"
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user