From 78b2bf18fa4f56496ed432905e062e85c9cac13e Mon Sep 17 00:00:00 2001 From: Benjamin Loison Date: Fri, 17 Feb 2023 16:57:11 +0100 Subject: [PATCH] #35: Make the not automatically generated captions correctly downloaded --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index c06ae25..e78f501 100644 --- a/main.cpp +++ b/main.cpp @@ -596,7 +596,7 @@ void treatChannelOrVideo(unsigned short threadId, bool isChannel, string id, str // We are obliged to precise the video id after `--`, otherwise if the video id starts with `-` it's considered as an argument. string cmdCommonPrefix = "yt-dlp --skip-download ", cmdCommonPostfix = " -o '" + channelCaptionsToTreatDirectory + "_' -- " + videoId; - string cmd = cmdCommonPrefix + "--sub-lang all,-live_chat" + cmdCommonPostfix; + string cmd = cmdCommonPrefix + "--write-sub --sub-lang all,-live_chat" + cmdCommonPostfix; exec(threadId, cmd); // Secondly download the automatically generated captions.