From 4d4490584f43704af1c5d5efef2859b77bc1c007 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sat, 21 May 2022 19:37:42 +0100 Subject: [PATCH] Add Tdarr_Plugin_077b_HandBrake_NVENC_264_Configurable test --- ...n_077b_HandBrake_NVENC_264_Configurable.js | 1 - ...n_077b_HandBrake_NVENC_264_Configurable.js | 44 +++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 tests/Community/Tdarr_Plugin_077b_HandBrake_NVENC_264_Configurable.js diff --git a/Community/Tdarr_Plugin_077b_HandBrake_NVENC_264_Configurable.js b/Community/Tdarr_Plugin_077b_HandBrake_NVENC_264_Configurable.js index 7957821..086dadd 100644 --- a/Community/Tdarr_Plugin_077b_HandBrake_NVENC_264_Configurable.js +++ b/Community/Tdarr_Plugin_077b_HandBrake_NVENC_264_Configurable.js @@ -1,5 +1,4 @@ /* eslint-disable */ -// tdarrSkipTest const details = () => { return { id: "Tdarr_Plugin_077b_HandBrake_NVENC_264_Configurable", diff --git a/tests/Community/Tdarr_Plugin_077b_HandBrake_NVENC_264_Configurable.js b/tests/Community/Tdarr_Plugin_077b_HandBrake_NVENC_264_Configurable.js new file mode 100644 index 0000000..9a3053c --- /dev/null +++ b/tests/Community/Tdarr_Plugin_077b_HandBrake_NVENC_264_Configurable.js @@ -0,0 +1,44 @@ +/* eslint max-len: 0 */ +const run = require('../helpers/run'); + +const tests = [ + { + input: { + file: require('../sampleData/media/sampleH264_1.json'), + librarySettings: {}, + inputs: {}, + otherArguments: {}, + }, + output: { + processFile: false, + preset: '', + container: '.mp4', + handBrakeMode: false, + FFmpegMode: false, + reQueueAfter: false, + infoLog: '☑ File is already in h264, no need to transcode! \n', + }, + }, + { + input: { + file: require('../sampleData/media/sampleH265_1.json'), + librarySettings: {}, + inputs: { + handbrake_preset: 'Very Fast 1080p30', + output_container: '.mp4', + }, + otherArguments: {}, + }, + output: { + processFile: true, + preset: '-Z "Very Fast 1080p30" -e nvenc_h264 --all-audio --all-subtitles', + container: '.mp4', + handBrakeMode: true, + FFmpegMode: false, + reQueueAfter: true, + infoLog: '☒ File is not in h264, transcoding! \n', + }, + }, +]; + +run(tests);