mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 18:45:53 -07:00
Move imports into plugin function
This commit is contained in:
parent
3042b35800
commit
f037743bea
87 changed files with 182 additions and 108 deletions
|
|
@ -1,5 +1,4 @@
|
|||
// eslint-disable-next-line import/no-unresolved
|
||||
const lib = require('../methods/lib')();
|
||||
|
||||
const details = () => ({
|
||||
id: 'Tdarr_Plugin_a9hf_New_file_duration_check',
|
||||
|
|
@ -38,6 +37,8 @@ const details = () => ({
|
|||
});
|
||||
|
||||
const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||
// eslint-disable-next-line global-require
|
||||
const lib = require('../methods/lib')();
|
||||
// eslint-disable-next-line no-unused-vars,no-param-reassign
|
||||
inputs = lib.loadDefaultValues(inputs, details);
|
||||
// Must return this object at some point in the function else plugin will fail.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue