Disable CC subs from being default

Temporary measure until I can think of a better way to implement it so that CC subtitles are not set as default along with the normal subtitle
This commit is contained in:
AnimeDL 2023-07-05 21:35:44 -07:00
parent 5dfea78822
commit a78461a2ac

View file

@ -215,7 +215,8 @@ class Merger {
for (const subObj of this.options.subtitles) {
args.push('--track-name', `0:"${(subObj.language.language || subObj.language.name) + `${subObj.closedCaption === true ? ` ${this.options.ccTag}` : ''}`}"`);
args.push('--language', `0:"${subObj.language.code}"`);
if (this.options.defaults.sub.code === subObj.language.code) {
//TODO: look into making Closed Caption default if it's the only sub of the default language downloaded
if (this.options.defaults.sub.code === subObj.language.code && !subObj.closedCaption) {
args.push('--default-track 0');
} else {
args.push('--default-track 0:0');