diff --git a/Community/Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js b/Community/Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js index 1e05058..d581b54 100644 --- a/Community/Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js +++ b/Community/Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js @@ -188,7 +188,7 @@ function plugin(file) { if (hasSubs) { response.infoLog += "☒File has subs! \n" - response.preset = ',-sn -c:v copy -c:a copy' + response.preset = ',-sn -map 0 -c copy' response.reQueueAfter = true; response.processFile = true; return response 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 69c3d22..4553626 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 @@ -114,19 +114,11 @@ 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) { @@ -163,12 +155,13 @@ function plugin(file) { } + if(file.meta.Title != "undefined" && hasSubs){ response.infoLog += "☒File has title and has subs \n" - response.preset = ',-sn -map_metadata -1 -c:v copy -c:a copy' + response.preset = ',-sn -map_metadata -1 -map 0 -c copy' response.reQueueAfter = true; response.processFile = true; return response @@ -180,7 +173,7 @@ function plugin(file) { if(file.meta.Title != undefined ){ response.infoLog += "☒File has title metadata \n" - response.preset = ',-map_metadata -1 -c:v copy -c:a copy' + response.preset = ',-map_metadata -1 -map 0 -c copy' response.reQueueAfter = true; response.processFile = true; return response @@ -193,7 +186,7 @@ function plugin(file) { if(hasSubs){ response.infoLog += "☒File has subs \n" - response.preset = ',-sn -c:v copy -c:a copy' + response.preset = ',-sn -map 0 -c copy' response.reQueueAfter = true; response.processFile = true; return response @@ -202,6 +195,18 @@ function plugin(file) { response.infoLog += "☑File has no subs \n" } + + + if( file.container != 'mp4'){ + response.infoLog += "☒File is not in mp4 container! \n" + response.preset = ', -map 0 -c copy' + response.reQueueAfter = true; + response.processFile = true; + return response + }else{ + response.infoLog += "☑File is in mp4 container! \n" + } +