mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
formatting
This commit is contained in:
parent
5edc268034
commit
a37667f0cb
1 changed files with 16 additions and 25 deletions
|
|
@ -22,22 +22,20 @@ function plugin(file) {
|
|||
|
||||
var response = {
|
||||
|
||||
processFile : false,
|
||||
preset : '',
|
||||
container : '.mp4',
|
||||
handBrakeMode : false,
|
||||
FFmpegMode : false,
|
||||
reQueueAfter : false,
|
||||
infoLog : '',
|
||||
processFile: false,
|
||||
preset: '',
|
||||
container: '.mp4',
|
||||
handBrakeMode: false,
|
||||
FFmpegMode: false,
|
||||
reQueueAfter: false,
|
||||
infoLog: '',
|
||||
|
||||
}
|
||||
|
||||
response.container = '.'+file.container
|
||||
response.container = '.' + file.container
|
||||
response.FFmpegMode = true
|
||||
|
||||
|
||||
|
||||
|
||||
if (file.fileMedium !== "video") {
|
||||
|
||||
|
||||
|
|
@ -48,32 +46,25 @@ function plugin(file) {
|
|||
|
||||
return response
|
||||
|
||||
} else {
|
||||
} else {
|
||||
|
||||
var jsonString = JSON.stringify(file)
|
||||
// var jsonString = JSON.stringify(file)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
///
|
||||
|
||||
|
||||
///
|
||||
if(file.meta.Title != undefined ){
|
||||
if (file.meta.Title != undefined) {
|
||||
|
||||
response.infoLog += " File has title metadata"
|
||||
response.preset = ',-map_metadata -1 -c:v copy -c:a copy'
|
||||
response.reQueueAfter = true;
|
||||
response.processFile = true;
|
||||
return response
|
||||
}else{
|
||||
} else {
|
||||
response.infoLog += " File has no title metadata"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
response.infoLog += " File meets conditions!"
|
||||
return response
|
||||
|
||||
response.infoLog += " File meets conditions!"
|
||||
return response
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue