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.