mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 23:48:15 -07:00
ASS sub remove fix
This commit is contained in:
parent
b8a223eaec
commit
00571b1c3c
6 changed files with 15 additions and 15 deletions
|
|
@ -98,7 +98,7 @@ function plugin(file) {
|
|||
if(!jsonString.includes("aac") && hasSubs){
|
||||
|
||||
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.processFile = true;
|
||||
response.FFmpegMode = true
|
||||
|
|
@ -109,7 +109,7 @@ function plugin(file) {
|
|||
if(file.meta.Title != "undefined" && hasSubs){
|
||||
|
||||
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.processFile = true;
|
||||
response.FFmpegMode = true
|
||||
|
|
@ -147,7 +147,7 @@ function plugin(file) {
|
|||
if(hasSubs){
|
||||
|
||||
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.processFile = true;
|
||||
response.FFmpegMode = true
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ function plugin(file) {
|
|||
if(!jsonString.includes("aac") && hasSubs){
|
||||
|
||||
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.processFile = true;
|
||||
response.FFmpegMode = true
|
||||
|
|
@ -109,7 +109,7 @@ function plugin(file) {
|
|||
if(file.meta.Title != "undefined" && hasSubs){
|
||||
|
||||
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.processFile = true;
|
||||
response.FFmpegMode = true
|
||||
|
|
@ -147,7 +147,7 @@ function plugin(file) {
|
|||
if(hasSubs){
|
||||
|
||||
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.processFile = true;
|
||||
response.FFmpegMode = true
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ function plugin(file) {
|
|||
if(file.meta.Title != "undefined" && hasSubs){
|
||||
|
||||
response.processFile = true;
|
||||
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.container = '.mkv'
|
||||
response.handBrakeMode =false
|
||||
response.FFmpegMode = true
|
||||
|
|
@ -122,7 +122,7 @@ function plugin(file) {
|
|||
if(hasSubs){
|
||||
|
||||
response.processFile = true;
|
||||
response.preset = '-sn, -c:v copy -c:a copy'
|
||||
response.preset = ',-sn -c:v copy -c:a copy'
|
||||
response.container = '.mkv'
|
||||
response.handBrakeMode =false
|
||||
response.FFmpegMode = true
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ function plugin(file) {
|
|||
if(file.meta.Title != "undefined" && hasSubs){
|
||||
|
||||
response.processFile = true;
|
||||
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.container = '.mkv'
|
||||
response.handBrakeMode =false
|
||||
response.FFmpegMode = true
|
||||
|
|
@ -122,7 +122,7 @@ function plugin(file) {
|
|||
if(hasSubs){
|
||||
|
||||
response.processFile = true;
|
||||
response.preset = '-sn, -c:v copy -c:a copy'
|
||||
response.preset = ',-sn -c:v copy -c:a copy'
|
||||
response.container = '.mkv'
|
||||
response.handBrakeMode =false
|
||||
response.FFmpegMode = true
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ function plugin(file) {
|
|||
if(file.meta.Title != "undefined" && hasSubs){
|
||||
|
||||
response.processFile = true;
|
||||
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.container = '.mkv'
|
||||
response.handBrakeMode =false
|
||||
response.FFmpegMode = true
|
||||
|
|
@ -122,7 +122,7 @@ function plugin(file) {
|
|||
if(hasSubs){
|
||||
|
||||
response.processFile = true;
|
||||
response.preset = '-sn, -c:v copy -c:a copy'
|
||||
response.preset = ',-sn -c:v copy -c:a copy'
|
||||
response.container = '.mkv'
|
||||
response.handBrakeMode =false
|
||||
response.FFmpegMode = true
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ function plugin(file) {
|
|||
if(!jsonString.includes("aac") && hasSubs){
|
||||
|
||||
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.processFile = true;
|
||||
return response
|
||||
|
|
@ -96,7 +96,7 @@ function plugin(file) {
|
|||
if(file.meta.Title != "undefined" && hasSubs){
|
||||
|
||||
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.processFile = true;
|
||||
return response
|
||||
|
|
@ -131,7 +131,7 @@ function plugin(file) {
|
|||
if(hasSubs){
|
||||
|
||||
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.processFile = true;
|
||||
return response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue