mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-17 03:06:27 -07:00
Plugin update
This commit is contained in:
parent
5f68989571
commit
90e2b3923a
85 changed files with 2093 additions and 1007 deletions
|
|
@ -1,33 +1,45 @@
|
|||
/* eslint-disable */
|
||||
const fs = require("fs");
|
||||
const execSync = require("child_process").execSync;
|
||||
const loadDefaultValues = require('../methods/loadDefaultValues');
|
||||
|
||||
function details() {
|
||||
const details = () => {
|
||||
return {
|
||||
id: "Tdarr_Plugin_e5c3_CnT_Add_Subtitles",
|
||||
Stage: "Pre-processing",
|
||||
Name: "Add subtitles to MKV files",
|
||||
Type: "Video",
|
||||
Operation: "Remux",
|
||||
Operation: 'Transcode',
|
||||
Description: `This plugin will check for subtitles, they should be named according to the ISO 639-2 language code.\nA subtitle could look like this: eng.srt\n If there are subtitles found they will be added with FFMPEG, if there are no subs of that language found.\n On first run node module iso-639-2 will be installed in the documents folder.\n Created by @control#0405`,
|
||||
Version: "1.3",
|
||||
Link:
|
||||
"https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_e5c3_CnT_Add_Subtitles.js",
|
||||
Tags: "pre-processing,ffmpeg,subtitle only,configurable",
|
||||
Inputs: [
|
||||
{
|
||||
name: "install_packages",
|
||||
type: 'string',
|
||||
defaultValue:'no',
|
||||
inputUI: {
|
||||
type: 'text',
|
||||
},
|
||||
tooltip: `Please change this to "yes", it allows the plugin to install the required nodemodule. (iso-639-2) \\nExample:\\n yes`,
|
||||
},
|
||||
{
|
||||
name: "container",
|
||||
type: 'string',
|
||||
defaultValue:'.mkv',
|
||||
inputUI: {
|
||||
type: 'text',
|
||||
},
|
||||
tooltip: `Enter the output container of the new file.\\n Default: .mkv\\nExample:\\n.mkv`,
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
function plugin(file, librarySettings, inputs, otherArguments) {
|
||||
// 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);
|
||||
//default response
|
||||
var response = {
|
||||
processFile: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue