mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-18 03:36:26 -07:00
Plugin update
This commit is contained in:
parent
5f68989571
commit
90e2b3923a
85 changed files with 2093 additions and 1007 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue