mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Remux first
This commit is contained in:
parent
0e4baf4a6b
commit
b04bfdb085
1 changed files with 15 additions and 14 deletions
|
|
@ -113,6 +113,21 @@ function plugin(file) {
|
|||
|
||||
}
|
||||
|
||||
|
||||
if( file.container != 'mp4'){
|
||||
response.infoLog += "☒File is not in mp4 container! \n"
|
||||
response.preset = ', -c:v copy -c:a copy'
|
||||
response.reQueueAfter = true;
|
||||
response.processFile = true;
|
||||
return response
|
||||
}else{
|
||||
response.infoLog += "☑File is in mp4 container! \n"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (hasPreferredLangInRequiredCodecs) {
|
||||
|
||||
response.infoLog += `☑File already has ${preferredLangTrack} language track in ${requiredAudioCodecs}! \n`
|
||||
|
|
@ -188,21 +203,7 @@ function plugin(file) {
|
|||
}
|
||||
|
||||
|
||||
if( file.container != 'mp4'){
|
||||
|
||||
response.infoLog += "☒File is not in mp4 container! \n"
|
||||
response.preset = ', -c:v copy -c:a copy'
|
||||
response.reQueueAfter = true;
|
||||
response.processFile = true;
|
||||
return response
|
||||
|
||||
|
||||
}else{
|
||||
|
||||
response.infoLog += "☑File is in mp4 container! \n"
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
response.infoLog += "☑File meets conditions! \n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue