mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-10 07:50:29 -07:00
Update lib (#227)
* Update library.js * update imports * update defaults
This commit is contained in:
parent
680916a6db
commit
2ba3df1977
87 changed files with 601 additions and 612 deletions
|
|
@ -26,7 +26,7 @@ folders.forEach((folder) => {
|
|||
for (let i = 0; i < files.length; i += 1) {
|
||||
let read = fs.readFileSync(`${folder}/${files[i]}`).toString();
|
||||
|
||||
const importDefaultValues = 'const loadDefaultValues = require(\'../methods/loadDefaultValues\');';
|
||||
const importDefaultValues = 'const lib = require(\'../methods/library\');';
|
||||
if (!read.includes(importDefaultValues)) {
|
||||
console.log(`Plugin error: '${folder}/${files[i]}' does not contain ${importDefaultValues}`);
|
||||
read = `${importDefaultValues}\n${read}`;
|
||||
|
|
@ -50,7 +50,7 @@ folders.forEach((folder) => {
|
|||
process.exit(1);
|
||||
}
|
||||
|
||||
const inputsText = 'inputs = loadDefaultValues(inputs, details);';
|
||||
const inputsText = 'inputs = lib.loadDefaultValues(inputs, details);';
|
||||
if (!read.includes(inputsText)
|
||||
) {
|
||||
console.log(`Plugin error: '${folder}/${files[i]}' does not contain ${inputsText}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue