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 ",
},
{
label:'Output File Becomes Working File?',
name:'outputFileBecomesWorkingFile',
type:'boolean',
defaultValue:'true',
inputUI:{
type:'switch',
displayConditions:{
logic:'AND',
sets:[
{
logic:'AND',
inputs:[
{
name:'doesCommandCreateOutputFile',
value:'true',
condition:'===',
},
],
},
],
},
},
tooltip:'Toggle this on to make the output file become the working file for the next plugin.',
},
{
{
label:'CLI Arguments',
label:'CLI Arguments',
name:'cliArguments',
name:'cliArguments',
@ -85,7 +146,7 @@ var details = function () { return ({
inputUI:{
inputUI:{
type:'text',
type:'text',
},
},
tooltip:"Specify arguments to pass to the CLI. \n Normal variable templating with {{{}}} applies but ${outputFilePath} is a special\n variable for an output file in the Tdarr cache directory.\n\n \\nExample\\n\n -o \"${outputFilePath}\" \"{{{args.inputFileObj._id}}}\"\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 ",
},
},
],
],
outputs:[
outputs:[
@ -98,7 +159,7 @@ var details = function () { return ({