From 7eaec0beb830a9ce2325881ac127a39500bdd1bf Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sun, 22 May 2022 13:54:58 +0100 Subject: [PATCH] Add Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs test --- ...rr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js | 1 - ...rr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js | 48 +++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 tests/Community/Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js diff --git a/Community/Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js b/Community/Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js index 4e433ad..49203be 100644 --- a/Community/Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js +++ b/Community/Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js @@ -1,5 +1,4 @@ /* eslint-disable */ -// tdarrSkipTest const details = () => { return { id: "Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs", diff --git a/tests/Community/Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js b/tests/Community/Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js new file mode 100644 index 0000000..86bb3c1 --- /dev/null +++ b/tests/Community/Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs.js @@ -0,0 +1,48 @@ +/* eslint max-len: 0 */ +const _ = require('lodash'); +const run = require('../helpers/run'); + +const tests = [ + { + input: { + file: _.cloneDeep(require('../sampleData/media/sampleH264_1.json')), + librarySettings: {}, + inputs: {}, + otherArguments: {}, + }, + output: { + processFile: false, + preset: '', + container: '.mp4', + handBrakeMode: false, + FFmpegMode: true, + reQueueAfter: false, + infoLog: '☒File is not a 4K video \n', + }, + }, + { + input: { + file: (() => { + const file = _.cloneDeep(require('../sampleData/media/sampleH264_2.json')); + file.video_resolution = '4KUHD'; + return file; + })(), + librarySettings: {}, + inputs: {}, + otherArguments: {}, + }, + output: { + processFile: true, + preset: ',-sn -map 0 -c copy', + container: '.mkv', + handBrakeMode: false, + FFmpegMode: true, + reQueueAfter: true, + infoLog: '☑File does not have only AC3 track commentaries! \n' + + '☑File has AC3 track! \n' + + '☒File has subs! \n', + }, + }, +]; + +run(tests);