mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-13 01:10:27 -07:00
Fix bug when video is not first
This commit is contained in:
parent
f8f5172765
commit
aa840354ff
2 changed files with 51 additions and 6 deletions
|
|
@ -100,9 +100,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
|
||||
var ffmpegCommand = ", -c copy";
|
||||
|
||||
if (file.ffProbeData.streams[0].codec_type.toLowerCase() == "video") {
|
||||
ffmpegCommand += ` -map 0:v `;
|
||||
}
|
||||
ffmpegCommand += ` -map 0:v? `;
|
||||
|
||||
var allAudioTracks = file.ffProbeData.streams.filter(
|
||||
(stream) => stream.codec_type.toLowerCase() == "audio"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue