From 303dc24f93324dfe93d36c0e7ecbb74947c4065d Mon Sep 17 00:00:00 2001 From: Fish2 Date: Sat, 19 Mar 2022 16:23:01 +0000 Subject: [PATCH] Also Remove any Subs tagged with SDH (#278) --- Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js b/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js index f26e26a..fe55253 100644 --- a/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js +++ b/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js @@ -125,7 +125,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { try { // Check if inputs.commentary is set to true // AND if stream is subtitle - // AND then checks for stream titles with the following "commentary or description". + // AND then checks for stream titles with the following "commentary, description, sdh". // Removing any streams that are applicable. if ( inputs.commentary === true @@ -135,7 +135,8 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { .includes('commentary') || file.ffProbeData.streams[i].tags.title .toLowerCase() - .includes('description')) + .includes('description') + || file.ffProbeData.streams[i].tags.title.toLowerCase().includes('sdh')) ) { ffmpegCommandInsert += `-map -0:s:${subtitleIdx} `; response.infoLog += `☒Subtitle stream 0:s:${subtitleIdx} detected as being descriptive, removing. \n`;