Update Tdarr_Plugin_a8hc_HaveAGitGat_HandBrake_H264_VeryFast1080p30.js

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

@ -85,6 +85,19 @@ function plugin(file) {
///
if(hasSubs){
response.infoLog += "☒File has subs \n"
response.preset = ',-sn -map 0 -c copy'
response.reQueueAfter = true;
response.processFile = true;
response.FFmpegMode = true
return response
}else{
response.infoLog += "☑File has no subs \n"
}
if((file.meta.Title != "undefined") && !jsonString.includes("aac") && hasSubs){
response.infoLog += "☒File has title metadata and no aac and subs \n"
@ -144,19 +157,6 @@ function plugin(file) {
response.infoLog += "☑File has aac track \n"
}
if(hasSubs){
response.infoLog += "☒File has subs \n"
response.preset = ',-sn -map 0 -c copy'
response.reQueueAfter = true;
response.processFile = true;
response.FFmpegMode = true
return response
}else{
response.infoLog += "☑File has no subs \n"
}
response.infoLog += "☑File meets conditions! \n"
return response

Loading…
Cancel
Save