From 3f616d4406b25792f6a9be95e9e256cc2d10c13c Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Thu, 28 Jan 2021 09:23:23 +0100 Subject: [PATCH] Check for extra empties --- Community/Tdarr_Plugin_MC93_Migz2CleanTitle.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Community/Tdarr_Plugin_MC93_Migz2CleanTitle.js b/Community/Tdarr_Plugin_MC93_Migz2CleanTitle.js index 0e26cc4..79028e9 100644 --- a/Community/Tdarr_Plugin_MC93_Migz2CleanTitle.js +++ b/Community/Tdarr_Plugin_MC93_Migz2CleanTitle.js @@ -78,7 +78,13 @@ function plugin(file, librarySettings, inputs) { } // Check if overall file metadata title is not empty, if it's not empty set to "". - if (typeof file.meta.Title !== 'undefined') { + if ( + !( + typeof file.meta.Title === 'undefined' + || file.meta.Title === '""' + || file.meta.Title === '' + ) + ) { try { ffmpegCommandInsert += ' -metadata title="" '; convert = true;