mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 02:05:54 -07:00
Apply auto-build changes
This commit is contained in:
parent
dc292e52c8
commit
2e4f96d40a
1 changed files with 6 additions and 6 deletions
|
|
@ -47,7 +47,7 @@ var details = function () { return ({
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
},
|
},
|
||||||
tooltip: "Value of variable to check. \n For == condition, you can specify multiple values separated by comma. For example: value1,value2,value3\n If the variable matches any of the values, the condition is true.\n ",
|
tooltip: "Value of variable to check. \nYou can specify multiple values separated by comma. For example: value1,value2,value3",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
outputs: [
|
outputs: [
|
||||||
|
|
@ -99,24 +99,24 @@ var plugin = function (args) {
|
||||||
}
|
}
|
||||||
targetValue = String(targetValue);
|
targetValue = String(targetValue);
|
||||||
var outputNumber = 1;
|
var outputNumber = 1;
|
||||||
|
var valuesArr = value.trim().split(',');
|
||||||
if (condition === '==') {
|
if (condition === '==') {
|
||||||
var valuesArr = value.trim().split(',');
|
|
||||||
if (valuesArr.includes(targetValue)) {
|
if (valuesArr.includes(targetValue)) {
|
||||||
args.jobLog("Variable ".concat(variable, " of value ").concat(targetValue, " matches condition ").concat(condition, " ").concat(valuesArr));
|
args.jobLog("Variable ".concat(variable, " of value ").concat(targetValue, " matches condition ").concat(condition, " ").concat(valuesArr));
|
||||||
outputNumber = 1;
|
outputNumber = 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
args.jobLog("Variable ".concat(variable, " of value ").concat(targetValue, " does not match condition ").concat(condition, " ").concat(value));
|
args.jobLog("Variable ".concat(variable, " of value ").concat(targetValue, " does not match condition ").concat(condition, " ").concat(valuesArr));
|
||||||
outputNumber = 2;
|
outputNumber = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (condition === '!=') {
|
else if (condition === '!=') {
|
||||||
if (targetValue !== value) {
|
if (!valuesArr.includes(targetValue)) {
|
||||||
args.jobLog("Variable ".concat(variable, " of value ").concat(targetValue, " matches condition ").concat(condition, " ").concat(value));
|
args.jobLog("Variable ".concat(variable, " of value ").concat(targetValue, " matches condition ").concat(condition, " ").concat(valuesArr));
|
||||||
outputNumber = 1;
|
outputNumber = 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
args.jobLog("Variable ".concat(variable, " of value ").concat(targetValue, " does not match condition ").concat(condition, " ").concat(value));
|
args.jobLog("Variable ".concat(variable, " of value ").concat(targetValue, " does not match condition ").concat(condition, " ").concat(valuesArr));
|
||||||
outputNumber = 2;
|
outputNumber = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue