mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 10:45:53 -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 = {
|
var response = {
|
||||||
|
|
||||||
processFile : false,
|
processFile: false,
|
||||||
preset : '',
|
preset: '',
|
||||||
container : '.mp4',
|
container: '.mp4',
|
||||||
handBrakeMode : false,
|
handBrakeMode: false,
|
||||||
FFmpegMode : false,
|
FFmpegMode: false,
|
||||||
reQueueAfter : false,
|
reQueueAfter: false,
|
||||||
infoLog : '',
|
infoLog: '',
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
response.container = '.'+file.container
|
response.container = '.' + file.container
|
||||||
response.FFmpegMode = true
|
response.FFmpegMode = true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (file.fileMedium !== "video") {
|
if (file.fileMedium !== "video") {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -48,32 +46,25 @@ function plugin(file) {
|
||||||
|
|
||||||
return response
|
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.infoLog += " File has title metadata"
|
||||||
response.preset = ',-map_metadata -1 -c:v copy -c:a copy'
|
response.preset = ',-map_metadata -1 -c:v copy -c:a copy'
|
||||||
response.reQueueAfter = true;
|
response.reQueueAfter = true;
|
||||||
response.processFile = true;
|
response.processFile = true;
|
||||||
return response
|
return response
|
||||||
}else{
|
} else {
|
||||||
response.infoLog += " File has no title metadata"
|
response.infoLog += " File has no title metadata"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
response.infoLog += " File meets conditions!"
|
response.infoLog += " File meets conditions!"
|
||||||
return response
|
return response
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue