From f52eed3804d0f997d9c132f7861c799d0cfd9029 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sat, 1 Jan 2022 14:19:16 +0000 Subject: [PATCH] Remove old code --- .../Tdarr_Plugin_pre1_Pre_Proc_Example.js | 35 ------------------- 1 file changed, 35 deletions(-) diff --git a/examples/Tdarr_Plugin_pre1_Pre_Proc_Example.js b/examples/Tdarr_Plugin_pre1_Pre_Proc_Example.js index 0651610..2d12d4e 100644 --- a/examples/Tdarr_Plugin_pre1_Pre_Proc_Example.js +++ b/examples/Tdarr_Plugin_pre1_Pre_Proc_Example.js @@ -125,40 +125,5 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { return response; }; -module.exports.onTranscodeSuccess = function onTranscodeSuccess( - file, - librarySettings, - inputs, -) { - console.log( - 'Transcode success! Now do some stuff with the newly scanned file.', - ); - - // Optional response if you need to modify database - const response = { - file, - removeFromDB: false, - updateDB: false, - }; - - return response; -}; - -module.exports.onTranscodeError = function onTranscodeError( - file, - librarySettings, - inputs, -) { - console.log('Transcode fail! Now do some stuff with the original file.'); - - // Optional response if you need to modify database - const response = { - file, - removeFromDB: false, - updateDB: false, - }; - - return response; -}; module.exports.details = details; module.exports.plugin = plugin;