diff --git a/Tdarr_Plugin_MM1_MrMeeb_Extract_Subs.js b/Tdarr_Plugin_MM1_MrMeeb_Extract_Subs.js index 1490dc0..b3937e3 100644 --- a/Tdarr_Plugin_MM1_MrMeeb_Extract_Subs.js +++ b/Tdarr_Plugin_MM1_MrMeeb_Extract_Subs.js @@ -153,9 +153,11 @@ const details = () => ({ if (ffmpegSubs.length > 0) { + let subName = removeMKV(otherArguments.originalLibraryFile.meta.FileName) + response.infoLog += '☒ Changes are required! \n Extracting SRT files'; - require("child_process").execSync(`rm -rf ${otherArguments.originalLibraryFile.meta.Directory}/*.srt`) + require("child_process").execSync(`rm -rf "${otherArguments.originalLibraryFile.meta.Directory}/${subName}*.srt`) response.FFmpegMode = true;