mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 00:12:05 +00:00
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:
parent
5dfea78822
commit
a78461a2ac
1 changed files with 2 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue