mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
parent
da397edeb3
commit
1baa066cf7
2 changed files with 10 additions and 4 deletions
|
|
@ -116,11 +116,14 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
}
|
||||
}
|
||||
|
||||
ffmpegCommand += ` -map 0:a:${streamIdx} -disposition:a:${streamIdx} default`;
|
||||
ffmpegCommand += ` -map 0:a:${streamIdx} -disposition:a:0 default`;
|
||||
|
||||
for (var i = 0; i < allAudioTracks.length; i++) {
|
||||
if (i !== streamIdx) {
|
||||
ffmpegCommand += ` -map 0:a:${i} -disposition:a:${i} none `;
|
||||
ffmpegCommand += ` -map 0:a:${i} `;
|
||||
}
|
||||
if (i !== 0) {
|
||||
ffmpegCommand += ` -disposition:a:${i} 0 `;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -119,11 +119,14 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
}
|
||||
}
|
||||
|
||||
ffmpegCommand += ` -map 0:s:${streamIdx} -disposition:s:${streamIdx} default`;
|
||||
ffmpegCommand += ` -map 0:s:${streamIdx} -disposition:s:0 default`;
|
||||
|
||||
for (var i = 0; i < allSubtitleTracks.length; i++) {
|
||||
if (i !== streamIdx) {
|
||||
ffmpegCommand += ` -map 0:s:${i} -disposition:a:${i} none `;
|
||||
ffmpegCommand += ` -map 0:s:${i} `;
|
||||
}
|
||||
if (i !== 0) {
|
||||
ffmpegCommand += ` -disposition:s:${i} 0 `;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue