mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Bug fix (map aac correctly)
This commit is contained in:
parent
5da3c88a1a
commit
821a589e9a
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
module.exports.plugin = plugin;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue