mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 09:45:55 -07:00
Add plugin inputUI type check
This commit is contained in:
parent
8dbd3484df
commit
7bfa40b1f9
1 changed files with 3 additions and 0 deletions
|
|
@ -157,6 +157,9 @@ module.exports.plugin = plugin;`;
|
||||||
console.log(`Plugin Input type does not match defaultValue type:
|
console.log(`Plugin Input type does not match defaultValue type:
|
||||||
'${folder}/${files[i]}' : ${inputs[j].name}`);
|
'${folder}/${files[i]}' : ${inputs[j].name}`);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
} else if (!['text', 'dropdown'].includes(inputs[j].inputUI.type)) {
|
||||||
|
console.log(`Plugin Input inputUI is invalid: '${folder}/${files[i]}' : ${inputs[j].name}`);
|
||||||
|
process.exit(1);
|
||||||
} else if (inputs[j].defaultValue === undefined) {
|
} else if (inputs[j].defaultValue === undefined) {
|
||||||
console.log(`Plugin Input does not have a default value: '${folder}/${files[i]}' : ${inputs[j].name}`);
|
console.log(`Plugin Input does not have a default value: '${folder}/${files[i]}' : ${inputs[j].name}`);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue