mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 18:45:53 -07:00
Remove sub bug fix
ASS subs were not being removed
This commit is contained in:
parent
0a63d07562
commit
e94aba691b
1 changed files with 4 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ function details() {
|
||||||
Type: "Video",
|
Type: "Video",
|
||||||
Description: `(BUG) This plugin for 4K video removes subs. If no AC3 track exists, it adds one (max 5.1 channels). If only an AC3 commentary track exists, it adds a new AC3 main track (max 5.1 channels). The output container is the same as the original file. \n\n
|
Description: `(BUG) This plugin for 4K video removes subs. If no AC3 track exists, it adds one (max 5.1 channels). If only an AC3 commentary track exists, it adds a new AC3 main track (max 5.1 channels). The output container is the same as the original file. \n\n
|
||||||
`,
|
`,
|
||||||
Version: "1.00",
|
Version: "1.01",
|
||||||
Link: "https://github.com/HaveAGitGat/Tdarr_Plugin_hk75_Drawmonster_MP4_ac3_No_Subs_No_metaTitle"
|
Link: "https://github.com/HaveAGitGat/Tdarr_Plugin_hk75_Drawmonster_MP4_ac3_No_Subs_No_metaTitle"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -118,7 +118,7 @@ function plugin(file) {
|
||||||
|
|
||||||
if (hasOnlyAC3TrackCommentaries && hasSubs) {
|
if (hasOnlyAC3TrackCommentaries && hasSubs) {
|
||||||
response.infoLog += "File has only AC3 track Commentaries and has subs \n"
|
response.infoLog += "File has only AC3 track Commentaries and has subs \n"
|
||||||
response.preset = '-sn,-map 0:v -map 0:a:0 -map 0:a -map 0:s? -map 0:d? -c copy -c:a:0 ac3 -ac ' + channels
|
response.preset = ',-sn -map 0:v -map 0:a:0 -map 0:a -map 0:s? -map 0:d? -c copy -c:a:0 ac3 -ac ' + channels
|
||||||
response.reQueueAfter = true;
|
response.reQueueAfter = true;
|
||||||
response.processFile = true;
|
response.processFile = true;
|
||||||
return response
|
return response
|
||||||
|
|
@ -126,7 +126,7 @@ function plugin(file) {
|
||||||
|
|
||||||
if (hasNoAC3Track && hasSubs) {
|
if (hasNoAC3Track && hasSubs) {
|
||||||
response.infoLog += "File has no AC3 track and has subs \n"
|
response.infoLog += "File has no AC3 track and has subs \n"
|
||||||
response.preset = '-sn,-map 0:v -map 0:a:0 -map 0:a -map 0:s? -map 0:d? -c copy -c:a:0 ac3 -ac ' + channels
|
response.preset = ',-sn -map 0:v -map 0:a:0 -map 0:a -map 0:s? -map 0:d? -c copy -c:a:0 ac3 -ac ' + channels
|
||||||
response.reQueueAfter = true;
|
response.reQueueAfter = true;
|
||||||
response.processFile = true;
|
response.processFile = true;
|
||||||
return response
|
return response
|
||||||
|
|
@ -161,7 +161,7 @@ function plugin(file) {
|
||||||
|
|
||||||
if (hasSubs) {
|
if (hasSubs) {
|
||||||
response.infoLog += " File has subs! \n"
|
response.infoLog += " File has subs! \n"
|
||||||
response.preset = '-sn, -c:v copy -c:a copy'
|
response.preset = ',-sn -c:v copy -c:a copy'
|
||||||
response.reQueueAfter = true;
|
response.reQueueAfter = true;
|
||||||
response.processFile = true;
|
response.processFile = true;
|
||||||
return response
|
return response
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue