mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-13 01:10:27 -07:00
Beta plugins
This commit is contained in:
parent
50a795dc97
commit
e2cb06f0f2
117 changed files with 4414 additions and 168 deletions
|
|
@ -14,6 +14,8 @@ const details = ():IpluginDetails => ({
|
|||
},
|
||||
tags: '',
|
||||
isStartPlugin: false,
|
||||
pType: '',
|
||||
requiresVersion: '2.11.01',
|
||||
sidebarPosition: -1,
|
||||
icon: '',
|
||||
inputs: [],
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ const details = ():IpluginDetails => ({
|
|||
tags: '',
|
||||
|
||||
isStartPlugin: false,
|
||||
pType: '',
|
||||
requiresVersion: '2.11.01',
|
||||
sidebarPosition: -1,
|
||||
icon: 'faArrowRight',
|
||||
inputs: [
|
||||
|
|
@ -97,6 +99,18 @@ const plugin = async (args:IpluginInputArgs):Promise<IpluginOutputArgs> => {
|
|||
args.jobLog(`Input path: ${args.inputFileObj._id}`);
|
||||
args.jobLog(`Output path: ${ouputFilePath}`);
|
||||
|
||||
if (args.inputFileObj._id === ouputFilePath) {
|
||||
args.jobLog('Input and output path are the same, skipping move.');
|
||||
|
||||
return {
|
||||
outputFileObj: {
|
||||
_id: args.inputFileObj._id,
|
||||
},
|
||||
outputNumber: 1,
|
||||
variables: args.variables,
|
||||
};
|
||||
}
|
||||
|
||||
args.deps.fsextra.ensureDirSync(outputPath);
|
||||
|
||||
await moveFileAndValidate({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue