From b04bfdb085e50af23a0a0c1b04dfb27d0b3e1e7d Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Fri, 15 Nov 2019 02:03:38 +0000 Subject: [PATCH] Remux first --- ...rawmonster_MP4_AAC_No_Subs_No_metaTitle.js | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) 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 793fb7b..69c3d22 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 @@ -113,6 +113,21 @@ function plugin(file) { } + + if( file.container != 'mp4'){ + response.infoLog += "☒File is not in mp4 container! \n" + response.preset = ', -c:v copy -c:a copy' + response.reQueueAfter = true; + response.processFile = true; + return response + }else{ + response.infoLog += "☑File is in mp4 container! \n" + } + + + + + if (hasPreferredLangInRequiredCodecs) { response.infoLog += `☑File already has ${preferredLangTrack} language track in ${requiredAudioCodecs}! \n` @@ -188,22 +203,8 @@ function plugin(file) { } - if( file.container != 'mp4'){ - - response.infoLog += "☒File is not in mp4 container! \n" - response.preset = ', -c:v copy -c:a copy' - response.reQueueAfter = true; - response.processFile = true; - return response - }else{ - - response.infoLog += "☑File is in mp4 container! \n" - - - } - response.infoLog += "☑File meets conditions! \n" return response