mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-18 03:36:26 -07:00
check plugin inputs are used
This commit is contained in:
parent
40f626f881
commit
68eb996322
1 changed files with 6 additions and 0 deletions
|
|
@ -164,6 +164,12 @@ module.exports.plugin = plugin;`;
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const count = read.split(inputs[j].name).length - 1;
|
||||||
|
if (count === 1) {
|
||||||
|
console.log(`Plugin Input is not used: '${folder}/${files[i]}' : ${inputs[j].name}`);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue