mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 10:15:54 -07:00
Update Tdarr_Plugin_a8hc_HaveAGitGat_HandBrake_H264_VeryFast1080p30.js
This commit is contained in:
parent
7c3136c36e
commit
f42bfa5826
1 changed files with 13 additions and 13 deletions
|
|
@ -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){
|
if((file.meta.Title != "undefined") && !jsonString.includes("aac") && hasSubs){
|
||||||
|
|
||||||
response.infoLog += "☒File has title metadata and no aac and subs \n"
|
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"
|
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"
|
response.infoLog += "☑File meets conditions! \n"
|
||||||
return response
|
return response
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue