|
|
|
|
@ -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") {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -50,30 +48,23 @@ function plugin(file) {
|
|
|
|
|
|
|
|
|
|
} 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
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|