diff --git a/Community/Tdarr_Plugin_00td_action_handbrake_basic_options.js b/Community/Tdarr_Plugin_00td_action_handbrake_basic_options.js index 34dba85..05e6f6b 100644 --- a/Community/Tdarr_Plugin_00td_action_handbrake_basic_options.js +++ b/Community/Tdarr_Plugin_00td_action_handbrake_basic_options.js @@ -1,4 +1,3 @@ -// tdarrSkipTest const details = () => ({ id: 'Tdarr_Plugin_00td_action_handbrake_basic_options', Stage: 'Pre-processing', diff --git a/tests/Community/Tdarr_Plugin_00td_action_handbrake_basic_options.js b/tests/Community/Tdarr_Plugin_00td_action_handbrake_basic_options.js new file mode 100644 index 0000000..5777e28 --- /dev/null +++ b/tests/Community/Tdarr_Plugin_00td_action_handbrake_basic_options.js @@ -0,0 +1,74 @@ +/* eslint max-len: 0 */ +const run = require('../helpers/run'); + +const tests = [ + { + input: { + file: require('../sampleData/media/sampleH264_1.json'), + librarySettings: {}, + inputs: {}, + otherArguments: {}, + }, + output: { + processFile: true, + preset: '-Z "Very Fast 1080p30" -e x265 --all-subtitles', + container: '.mkv', + handBrakeMode: false, + FFmpegMode: false, + reQueueAfter: true, + infoLog: 'File is being transcoded using HandBrake \n', + handbrakeMode: true, + ffmpegMode: false, + }, + }, + { + input: { + file: require('../sampleData/media/sampleH264_1.json'), + librarySettings: {}, + inputs: { + handbrakePreset: 'Fast 576p25', + videoEncoder: 'nvenc_h265', + keepSubtitles: 'true', + container: 'mp4', + }, + otherArguments: {}, + }, + output: { + processFile: true, + preset: '-Z "Fast 576p25" -e nvenc_h265 --all-subtitles', + container: '.mp4', + handBrakeMode: false, + FFmpegMode: false, + reQueueAfter: true, + infoLog: 'File is being transcoded using HandBrake \n', + handbrakeMode: true, + ffmpegMode: false, + }, + }, + { + input: { + file: require('../sampleData/media/sampleH264_1.json'), + librarySettings: {}, + inputs: { + handbrakePreset: 'Fast 576p25', + videoEncoder: 'nvenc_h265', + keepSubtitles: 'false', + container: 'mov', + }, + otherArguments: {}, + }, + output: { + processFile: true, + preset: '-Z "Fast 576p25" -e nvenc_h265 ', + container: '.mov', + handBrakeMode: false, + FFmpegMode: false, + reQueueAfter: true, + infoLog: 'File is being transcoded using HandBrake \n', + handbrakeMode: true, + ffmpegMode: false, + }, + }, +]; + +run(tests);