mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 02:35:54 -07:00
Correct map
This commit is contained in:
parent
7642cfe6ed
commit
ecb96676bc
2 changed files with 19 additions and 14 deletions
|
|
@ -188,7 +188,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 -map 0 -c copy'
|
||||||
response.reQueueAfter = true;
|
response.reQueueAfter = true;
|
||||||
response.processFile = true;
|
response.processFile = true;
|
||||||
return response
|
return response
|
||||||
|
|
|
||||||
|
|
@ -114,19 +114,11 @@ 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) {
|
if (hasPreferredLangInRequiredCodecs) {
|
||||||
|
|
||||||
|
|
@ -163,12 +155,13 @@ 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 -map 0 -c copy'
|
||||||
response.reQueueAfter = true;
|
response.reQueueAfter = true;
|
||||||
response.processFile = true;
|
response.processFile = true;
|
||||||
return response
|
return response
|
||||||
|
|
@ -180,7 +173,7 @@ function plugin(file) {
|
||||||
if(file.meta.Title != undefined ){
|
if(file.meta.Title != undefined ){
|
||||||
|
|
||||||
response.infoLog += "☒File has title metadata \n"
|
response.infoLog += "☒File has title metadata \n"
|
||||||
response.preset = ',-map_metadata -1 -c:v copy -c:a copy'
|
response.preset = ',-map_metadata -1 -map 0 -c copy'
|
||||||
response.reQueueAfter = true;
|
response.reQueueAfter = true;
|
||||||
response.processFile = true;
|
response.processFile = true;
|
||||||
return response
|
return response
|
||||||
|
|
@ -193,7 +186,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 -map 0 -c copy'
|
||||||
response.reQueueAfter = true;
|
response.reQueueAfter = true;
|
||||||
response.processFile = true;
|
response.processFile = true;
|
||||||
return response
|
return response
|
||||||
|
|
@ -202,6 +195,18 @@ function plugin(file) {
|
||||||
response.infoLog += "☑File has no subs \n"
|
response.infoLog += "☑File has no subs \n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if( file.container != 'mp4'){
|
||||||
|
response.infoLog += "☒File is not in mp4 container! \n"
|
||||||
|
response.preset = ', -map 0 -c copy'
|
||||||
|
response.reQueueAfter = true;
|
||||||
|
response.processFile = true;
|
||||||
|
return response
|
||||||
|
}else{
|
||||||
|
response.infoLog += "☑File is in mp4 container! \n"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue