|
|
|
@ -98,7 +98,7 @@ function plugin(file) {
|
|
|
|
if(!jsonString.includes("aac") && hasSubs){
|
|
|
|
if(!jsonString.includes("aac") && hasSubs){
|
|
|
|
|
|
|
|
|
|
|
|
response.infoLog += "☒File has no aac track and has subs \n"
|
|
|
|
response.infoLog += "☒File has no aac 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 aac -b:a:0 192k -ac 2'
|
|
|
|
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 -b:a:0 192k -ac 2'
|
|
|
|
response.reQueueAfter = true;
|
|
|
|
response.reQueueAfter = true;
|
|
|
|
response.processFile = true;
|
|
|
|
response.processFile = true;
|
|
|
|
response.FFmpegMode = true
|
|
|
|
response.FFmpegMode = true
|
|
|
|
@ -109,7 +109,7 @@ function plugin(file) {
|
|
|
|
if(file.meta.Title != "undefined" && hasSubs){
|
|
|
|
if(file.meta.Title != "undefined" && hasSubs){
|
|
|
|
|
|
|
|
|
|
|
|
response.infoLog += "☒File has title and has subs \n"
|
|
|
|
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 -c:v copy -c:a copy'
|
|
|
|
response.reQueueAfter = true;
|
|
|
|
response.reQueueAfter = true;
|
|
|
|
response.processFile = true;
|
|
|
|
response.processFile = true;
|
|
|
|
response.FFmpegMode = true
|
|
|
|
response.FFmpegMode = true
|
|
|
|
@ -147,7 +147,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;
|
|
|
|
response.FFmpegMode = true
|
|
|
|
response.FFmpegMode = true
|
|
|
|
|