mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-10 16:00:28 -07:00
Install deps if possible
This commit is contained in:
parent
07f0cf7c3f
commit
4a532f6f25
5 changed files with 56 additions and 3 deletions
|
|
@ -84,6 +84,17 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
|
|||
);
|
||||
}
|
||||
|
||||
if (Array.isArray(classicPlugin.dependencies)) {
|
||||
if (args.installClassicPluginDeps) {
|
||||
args.jobLog(`Installing dependencies for ${pluginSourceId}`);
|
||||
await args.installClassicPluginDeps(classicPlugin.dependencies);
|
||||
} else {
|
||||
args.jobLog(`Not installing dependencies for ${pluginSourceId}, please update Tdarr`);
|
||||
}
|
||||
} else {
|
||||
args.jobLog(`No depedencies to install for ${pluginSourceId}`);
|
||||
}
|
||||
|
||||
const container = getContainer(args.inputFileObj._id);
|
||||
let cacheFilePath = `${getPluginWorkDir(args)}/${getFileName(args.inputFileObj._id)}.${container}`;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue