Bug fix (map aac correctly)

make-only-subtitle-default
HaveAGitGat 6 years ago committed by GitHub
parent 5da3c88a1a
commit 821a589e9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,7 +7,7 @@ function details() {
id: "Tdarr_Plugin_hk75_Drawmonster_MP4_AAC_No_Subs_No_metaTitle", id: "Tdarr_Plugin_hk75_Drawmonster_MP4_AAC_No_Subs_No_metaTitle",
Name: "Drawmonster MP4 AAC, No Subs, No title meta data ", Name: "Drawmonster MP4 AAC, No Subs, No title meta data ",
Type: "Video", 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", Version: "1.00",
Link: "https://github.com/HaveAGitGat/Tdarr_Plugin_hk75_Drawmonster_MP4_AAC_No_Subs_No_metaTitle" 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")){ if(!jsonString.includes("aac") && jsonString.includes("subrip")){
response.infoLog += "File has no aac track and has subs" 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.reQueueAfter = true;
response.processFile = true; response.processFile = true;
return response return response
@ -103,7 +103,7 @@ function plugin(file) {
if(!jsonString.includes("aac")){ if(!jsonString.includes("aac")){
response.infoLog += " File has no aac track" 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.reQueueAfter = true;
response.processFile = true; response.processFile = true;
return response return response
@ -133,4 +133,4 @@ function plugin(file) {
module.exports.details = details; module.exports.details = details;
module.exports.plugin = plugin; module.exports.plugin = plugin;

Loading…
Cancel
Save