From 4694be14be9a4e91d4d0bbdade2acfe23b2571a4 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Wed, 29 Jan 2025 16:56:50 +0000 Subject: [PATCH 1/3] Update examples --- .../CommunityFlowPlugins/tools/customFunction/1.0.0/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/FlowPluginsTs/CommunityFlowPlugins/tools/customFunction/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/tools/customFunction/1.0.0/index.ts index 7d24f28..c6a5cc5 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/tools/customFunction/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/tools/customFunction/1.0.0/index.ts @@ -32,6 +32,7 @@ module.exports = async (args) => { // see args object data here https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/FlowPluginsTs/FlowHelpers/1.0.0/interfaces/interfaces.ts // example setting flow variable: https://github.com/HaveAGitGat/Tdarr/issues/1147#issuecomment-2593348443 // example reading ffmpeg metadata: https://github.com/HaveAGitGat/Tdarr_Plugins/issues/737#issuecomment-2581536112 +// example example setting working file as previous working file: https://github.com/HaveAGitGat/Tdarr/issues/1106#issuecomment-2622177459 // some example file data: console.log(args.inputFileObj._id) From 8d7a59d516413db7b903f0cbd2e1766a33b0ada0 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Wed, 29 Jan 2025 16:58:18 +0000 Subject: [PATCH 2/3] Remove duplicate word in description --- .../CommunityFlowPlugins/tools/customFunction/1.0.0/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FlowPluginsTs/CommunityFlowPlugins/tools/customFunction/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/tools/customFunction/1.0.0/index.ts index c6a5cc5..840e240 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/tools/customFunction/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/tools/customFunction/1.0.0/index.ts @@ -32,7 +32,7 @@ module.exports = async (args) => { // see args object data here https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/FlowPluginsTs/FlowHelpers/1.0.0/interfaces/interfaces.ts // example setting flow variable: https://github.com/HaveAGitGat/Tdarr/issues/1147#issuecomment-2593348443 // example reading ffmpeg metadata: https://github.com/HaveAGitGat/Tdarr_Plugins/issues/737#issuecomment-2581536112 -// example example setting working file as previous working file: https://github.com/HaveAGitGat/Tdarr/issues/1106#issuecomment-2622177459 +// example setting working file as previous working file: https://github.com/HaveAGitGat/Tdarr/issues/1106#issuecomment-2622177459 // some example file data: console.log(args.inputFileObj._id) From f6ee01e5105ebcaf7fc034d2bbbe5d2e68d5f4f2 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Wed, 29 Jan 2025 16:59:53 +0000 Subject: [PATCH 3/3] Apply auto-build changes --- .../CommunityFlowPlugins/tools/customFunction/1.0.0/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FlowPlugins/CommunityFlowPlugins/tools/customFunction/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/tools/customFunction/1.0.0/index.js index e0a5cb2..753b78f 100644 --- a/FlowPlugins/CommunityFlowPlugins/tools/customFunction/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/tools/customFunction/1.0.0/index.js @@ -58,7 +58,7 @@ var details = function () { return ({ label: 'JS Code', name: 'code', type: 'string', - defaultValue: "\nmodule.exports = async (args) => {\n\n// see args object data here https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/FlowPluginsTs/FlowHelpers/1.0.0/interfaces/interfaces.ts\n// example setting flow variable: https://github.com/HaveAGitGat/Tdarr/issues/1147#issuecomment-2593348443\n// example reading ffmpeg metadata: https://github.com/HaveAGitGat/Tdarr_Plugins/issues/737#issuecomment-2581536112\n\n// some example file data:\nconsole.log(args.inputFileObj._id)\nconsole.log(args.inputFileObj.file_size)\nconsole.log(args.inputFileObj.ffProbeData.streams[0].codec_name)\nconsole.log(args.inputFileObj.mediaInfo.track[0].BitRate)\n\n// access global variable:\nconsole.log(args.userVariables.global.test)\n// access library variable:\nconsole.log(args.userVariables.library.test)\n\n\n\n// do something here\n\n return {\n outputFileObj: args.inputFileObj,\n outputNumber: 1,\n variables: args.variables,\n };\n}\n ", + defaultValue: "\nmodule.exports = async (args) => {\n\n// see args object data here https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/FlowPluginsTs/FlowHelpers/1.0.0/interfaces/interfaces.ts\n// example setting flow variable: https://github.com/HaveAGitGat/Tdarr/issues/1147#issuecomment-2593348443\n// example reading ffmpeg metadata: https://github.com/HaveAGitGat/Tdarr_Plugins/issues/737#issuecomment-2581536112\n// example setting working file as previous working file: https://github.com/HaveAGitGat/Tdarr/issues/1106#issuecomment-2622177459\n\n// some example file data:\nconsole.log(args.inputFileObj._id)\nconsole.log(args.inputFileObj.file_size)\nconsole.log(args.inputFileObj.ffProbeData.streams[0].codec_name)\nconsole.log(args.inputFileObj.mediaInfo.track[0].BitRate)\n\n// access global variable:\nconsole.log(args.userVariables.global.test)\n// access library variable:\nconsole.log(args.userVariables.library.test)\n\n\n\n// do something here\n\n return {\n outputFileObj: args.inputFileObj,\n outputNumber: 1,\n variables: args.variables,\n };\n}\n ", inputUI: { type: 'textarea', style: {