From 821a589e9a0eba6a99dbe686c73f7f6568ac3db7 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Thu, 26 Sep 2019 09:57:51 +0100 Subject: [PATCH] Bug fix (map aac correctly) --- ...lugin_hk75_Drawmonster_MP4_AAC_No_Subs_No_metaTitle.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 3f8cae0..ca6f0e4 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 @@ -7,7 +7,7 @@ function details() { id: "Tdarr_Plugin_hk75_Drawmonster_MP4_AAC_No_Subs_No_metaTitle", Name: "Drawmonster MP4 AAC, No Subs, No title meta data ", Type: "Video", - Description: `(BUG) This plugin removes subs, metadata (if a title exists) and adds an AAC track if one doesn't exist. The output container is mp4. \n\n + Description: `This plugin removes subs, metadata (if a title exists) and adds an AAC track if one doesn't exist. The output container is mp4. \n\n `, Version: "1.00", Link: "https://github.com/HaveAGitGat/Tdarr_Plugin_hk75_Drawmonster_MP4_AAC_No_Subs_No_metaTitle" @@ -70,7 +70,7 @@ function plugin(file) { if(!jsonString.includes("aac") && jsonString.includes("subrip")){ response.infoLog += "File has no aac track and has subs" - response.preset = '-sn,-map 0:v -c:v copy -map 0:a -c:a copy -map 0:a -strict -2 -c:a aac' + response.preset = '-sn,-map 0:v -map 0:a:0 -map 0:a -map 0:s? -map 0:d? -c copy -c:a:0 aac' response.reQueueAfter = true; response.processFile = true; return response @@ -103,7 +103,7 @@ function plugin(file) { if(!jsonString.includes("aac")){ response.infoLog += " File has no aac track" - response.preset = ',-map 0:v -c:v copy -map 0:a -c:a copy -map 0:a -strict -2 -c:a aac' + response.preset = ',-map 0:v -map 0:a:0 -map 0:a -map 0:s? -map 0:d? -c copy -c:a:0 aac' response.reQueueAfter = true; response.processFile = true; return response @@ -133,4 +133,4 @@ function plugin(file) { module.exports.details = details; -module.exports.plugin = plugin; \ No newline at end of file +module.exports.plugin = plugin;