This commit is contained in:
HaveAGitGat 2020-05-15 01:26:35 +01:00
parent d28272f6d4
commit 9c8ac98728
60 changed files with 5481 additions and 5980 deletions

View file

@ -1,8 +1,4 @@
function details() {
return {
id: "Tdarr_Plugin_nc7x_Drawmonster_No_Title_Meta",
Stage: "Pre-processing",
@ -11,66 +7,53 @@ function details() {
Description: `[Contains built-in filter] This plugin removes metadata (if a title exists). The output container is the same as the original. \n\n
`,
Version: "1.00",
Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_nc7x_Drawmonster_No_Title_Meta.js",
Tags:'pre-processing,ffmpeg',
}
Link:
"https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_nc7x_Drawmonster_No_Title_Meta.js",
Tags: "pre-processing,ffmpeg",
};
}
function plugin(file) {
//Must return this object
var response = {
processFile: false,
preset: '',
container: '.mp4',
preset: "",
container: ".mp4",
handBrakeMode: false,
FFmpegMode: false,
reQueueAfter: false,
infoLog: '',
}
response.container = '.' + file.container
response.FFmpegMode = true
infoLog: "",
};
response.container = "." + file.container;
response.FFmpegMode = true;
if (file.fileMedium !== "video") {
console.log("File is not video");
console.log("File is not video")
response.infoLog += "☒File is not video \n"
response.infoLog += "☒File is not video \n";
response.processFile = false;
return response
return response;
} else {
// var jsonString = JSON.stringify(file)
// var jsonString = JSON.stringify(file)
if (file.meta.Title != undefined) {
response.infoLog += "☒File has title metadata \n"
response.preset = ',-map_metadata -1 -map 0 -c copy'
response.infoLog += "☒File has title metadata \n";
response.preset = ",-map_metadata -1 -map 0 -c copy";
response.reQueueAfter = true;
response.processFile = true;
return response
return response;
} else {
response.infoLog += "☑File has no title metadata \n"
response.infoLog += "☑File has no title metadata \n";
}
response.infoLog += "☑File meets conditions! \n"
return response
response.infoLog += "☑File meets conditions! \n";
return response;
}
}
module.exports.details = details;
module.exports.plugin = plugin;
module.exports.plugin = plugin;