formatting
This commit is contained in:
parent
5edc268034
commit
a37667f0cb
@ -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…
Reference in New Issue
Block a user