-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04eca08
commit 45bfe77
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
FlowPluginsTs/CommunityFlowPlugins/tools/removeFromTdarr/1.0.0/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { | ||
IpluginDetails, | ||
IpluginInputArgs, | ||
IpluginOutputArgs, | ||
} from '../../../../FlowHelpers/1.0.0/interfaces/interfaces'; | ||
|
||
/* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */ | ||
const details = (): IpluginDetails => ({ | ||
name: 'Remove From Tdarr', | ||
description: ` | ||
If this plugin is executed, then when the flow ends, the item will be | ||
removed from the Tdarr database and won't appear in Transcode Success or Error tables on the 'Tdarr' tab. | ||
Use the 'Delete File' plugin if you would like to delete the file from disk. | ||
`, | ||
style: { | ||
borderColor: 'red', | ||
}, | ||
tags: '', | ||
isStartPlugin: false, | ||
pType: '', | ||
requiresVersion: '2.31.01', | ||
sidebarPosition: -1, | ||
icon: 'faTrash', | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
number: 1, | ||
tooltip: 'Continue to next plugin', | ||
}, | ||
], | ||
}); | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const plugin = (args: IpluginInputArgs): IpluginOutputArgs => { | ||
// eslint-disable-next-line no-param-reassign | ||
args.variables.removeFromTdarr = true; | ||
|
||
return { | ||
outputFileObj: args.inputFileObj, | ||
outputNumber: 1, | ||
variables: args.variables, | ||
}; | ||
}; | ||
export { | ||
details, | ||
plugin, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters