Plugin update

This commit is contained in:
HaveAGitGat 2021-12-11 19:48:53 +00:00
parent 5f68989571
commit 90e2b3923a
85 changed files with 2093 additions and 1007 deletions

View file

@ -1,20 +1,22 @@
function details() {
return {
id: 'Tdarr_Plugin_x7ac_Remove_Closed_Captions',
Stage: 'Pre-processing',
Name: 'Remove burned closed captions',
Type: 'Video',
Operation: 'Remux',
Description:
'[Contains built-in filter] If detected, closed captions (XDS,608,708) will be removed from streams.',
Version: '1.01',
Link:
'https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_x7ac_Remove_Closed_Captions.js',
Tags: 'pre-processing,ffmpeg,subtitle only',
};
}
const loadDefaultValues = require('../methods/loadDefaultValues');
function plugin(file) {
const details = () => ({
id: 'Tdarr_Plugin_x7ac_Remove_Closed_Captions',
Stage: 'Pre-processing',
Name: 'Remove burned closed captions',
Type: 'Video',
Operation: 'Transcode',
Description:
'[Contains built-in filter] If detected, closed captions (XDS,608,708) will be removed from streams.',
Version: '1.01',
Tags: 'pre-processing,ffmpeg,subtitle only',
Inputs: [],
});
// eslint-disable-next-line no-unused-vars
const plugin = (file, librarySettings, inputs, otherArguments) => {
// eslint-disable-next-line no-unused-vars,no-param-reassign
inputs = loadDefaultValues(inputs, details);
const response = {
processFile: false,
// eslint-disable-next-line no-useless-escape
@ -46,6 +48,6 @@ function plugin(file) {
response.infoLog += response.processFile ? '☒This file has burnt closed captions \n'
: '☑Closed captions have not been detected on this file \n';
return response;
}
};
module.exports.details = details;
module.exports.plugin = plugin;