#35: Make the not automatically generated captions correctly downloaded
This commit is contained in:
parent
fd75d27b99
commit
e5dd476490
2
main.cpp
2
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.
|
// 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 ",
|
string cmdCommonPrefix = "yt-dlp --skip-download ",
|
||||||
cmdCommonPostfix = " -o '" + channelCaptionsToTreatDirectory + "_' -- " + videoId;
|
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);
|
exec(threadId, cmd);
|
||||||
|
|
||||||
// Secondly download the automatically generated captions.
|
// Secondly download the automatically generated captions.
|
||||||
|
Loading…
Reference in New Issue
Block a user