From c6cffb90d85576abf10a06bf8040ce72043aca42 Mon Sep 17 00:00:00 2001 From: cpadil Date: Tue, 2 Apr 2024 16:20:03 -0600 Subject: [PATCH] small fix --- Community/Tdarr_Plugin_cp92_clean_audio_subtitles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community/Tdarr_Plugin_cp92_clean_audio_subtitles.js b/Community/Tdarr_Plugin_cp92_clean_audio_subtitles.js index e31b30a19..6fc48f065 100644 --- a/Community/Tdarr_Plugin_cp92_clean_audio_subtitles.js +++ b/Community/Tdarr_Plugin_cp92_clean_audio_subtitles.js @@ -225,7 +225,7 @@ const processStreams = (result, file, user_langs, sub_codecs,sub_lang) => { if (stream.codec_type === "subtitle"){ if( !subtitle_langs.includes(stream.tags.language) || - subtitle_codecs.includes(stream.codec_name.toLowerCase()) || + (stream.hasOwnProperty('codec_name') && subtitle_codecs.includes(stream.codec_name.toLowerCase()) )|| stream.disposition.comment == 1 || (stream.tags.hasOwnProperty('title') && (stream.tags.title.toLowerCase().includes('commentary') || stream.tags.title.toLowerCase().includes('description') ||