From 90261dfac518492fe398890edf209f81a2eb70d2 Mon Sep 17 00:00:00 2001 From: Damiano Lombardo Date: Thu, 23 Sep 2021 00:41:52 +0800 Subject: [PATCH] Separate the input and output parameters with (#171) Commas in filepath will throw an error, use https://github.com/HaveAGitGat/Tdarr/issues/456#issuecomment-894011541 --- .../Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js b/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js index 5076e26..7b9a397 100644 --- a/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js +++ b/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js @@ -61,7 +61,7 @@ module.exports.plugin = function plugin(file, librarySettings, inputs, otherArgu } response.infoLog += 'Found subs to extract!\n'; - let command = '-y,'; + let command = '-y '; for (let i = 0; i < subsArr.length; i += 1) { const subStream = subsArr[i]; let lang = ''; @@ -102,7 +102,7 @@ module.exports.plugin = function plugin(file, librarySettings, inputs, otherArgu } } - if (command === '-y,') { + if (command === '-y ') { response.infoLog += 'All subs already extracted!\n'; if (inputs.remove_subs === 'no') { response.processFile = false;