@ -62,6 +62,16 @@ var details = function () { return ({
sidebarPosition:-1,
icon:'',
inputs:[
{
label:'Use Custom CLI Path?',
name:'useCustomCliPath',
type:'boolean',
defaultValue:'false',
inputUI:{
type:'switch',
},
tooltip:'Specify whether to use a custom CLI path',
},
{
label:'CLI',
name:'userCli',
@ -73,9 +83,49 @@ var details = function () { return ({
'mkvmerge',
'mkvpropedit',
],
displayConditions:{
logic:'AND',
sets:[
{
logic:'AND',
inputs:[
{
name:'useCustomCliPath',
value:'false',
condition:'===',
},
],
},
],
},
},
tooltip:'CLI to run',
},
{
label:'Custom CLI Path',
name:'customCliPath',
type:'string',
defaultValue:'/usr/bin/mkvmerge',
inputUI:{
type:'text',
displayConditions:{
logic:'AND',
sets:[
{
logic:'AND',
inputs:[
{
name:'useCustomCliPath',
value:'true',
condition:'===',
},
],
},
],
},
},
tooltip:'Specify the path to the CLI to run',
},
{
label:'Does Command Create Output File?',
name:'doesCommandCreateOutputFile',
@ -112,6 +162,17 @@ var details = function () { return ({
},
tooltip:"\n This path can be accessed using ${outputFilePath} in the \"CLI Arguments\" input below.\n\n \\n\n ${cacheDir} is a special variable that points to the Tdarr worker cache directory.\n\n \\n \n ${fileName} is a special variable for the filename without extension.\n \n \\nExample\\n\n ${cacheDir}/${fileName}.{{{args.inputFileObj.container}}}\n ",
tooltip:"Specify arguments to pass to the CLI. \n Normal variable templating with {{{}}} applies but ${outputFilePath} is a special\n variable from the \"Output File Path\" input above.\n\n \\nExample\\n\n -o \"${outputFilePath}\" \"{{{args.inputFileObj._id}}}\"\n ",
},
{
label:'Output File Becomes Working File?',
name:'outputFileBecomesWorkingFile',
@ -137,17 +198,6 @@ var details = function () { return ({
},
tooltip:'Toggle this on to make the output file become the working file for the next plugin.',
tooltip:"Specify arguments to pass to the CLI. \n Normal variable templating with {{{}}} applies but ${outputFilePath} is a special\n variable from the \"Output File Path\" input above.\n\n \\nExample\\n\n -o \"${outputFilePath}\" \"{{{args.inputFileObj._id}}}\"\n ",
},
],
outputs:[
{
@ -159,7 +209,7 @@ var details = function () { return ({