From 775adfc2e4a5bd8ba0cf85f75f361eeb0bbac4f5 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sun, 29 Sep 2019 02:28:37 +0100 Subject: [PATCH] make sure in mp4 --- ..._Drawmonster_MP4_AAC_No_Subs_No_metaTitle.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Community/Tdarr_Plugin_hk75_Drawmonster_MP4_AAC_No_Subs_No_metaTitle.js b/Community/Tdarr_Plugin_hk75_Drawmonster_MP4_AAC_No_Subs_No_metaTitle.js index ae508ab..6368bed 100644 --- a/Community/Tdarr_Plugin_hk75_Drawmonster_MP4_AAC_No_Subs_No_metaTitle.js +++ b/Community/Tdarr_Plugin_hk75_Drawmonster_MP4_AAC_No_Subs_No_metaTitle.js @@ -141,6 +141,23 @@ function plugin(file) { } + if( file.container != 'mp4'){ + + response.infoLog += " File is not in mp4 container!" + response.preset = ', -c:v copy -c:a copy' + response.reQueueAfter = true; + response.processFile = true; + return response + + + }else{ + + response.infoLog += " File is in mp4 container!" + + + } + + response.infoLog += " File meets conditions!" return response