From 38c37509ba4c1da2beda01de1a4c7418044eb4f7 Mon Sep 17 00:00:00 2001 From: Stephen Townsend <26904641+townsste@users.noreply.github.com> Date: Mon, 14 Feb 2022 20:28:05 -0800 Subject: [PATCH] ffProbe's disposition comment flag (#269) Checks the disposition comment flag for positive commentary --- Community/Tdarr_Plugin_sdd3_Remove_Commentary_Tracks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Community/Tdarr_Plugin_sdd3_Remove_Commentary_Tracks.js b/Community/Tdarr_Plugin_sdd3_Remove_Commentary_Tracks.js index 734ff54..00df33b 100644 --- a/Community/Tdarr_Plugin_sdd3_Remove_Commentary_Tracks.js +++ b/Community/Tdarr_Plugin_sdd3_Remove_Commentary_Tracks.js @@ -55,6 +55,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { try { if ( file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio" && + file.ffProbeData.streams[i].disposition.comment == 1 || file.ffProbeData.streams[i].tags.title .toLowerCase() .includes("commentary")