diff --git a/Community/Tdarr_Plugin_MC93_MigzImageRemoval.js b/Community/Tdarr_Plugin_MC93_MigzImageRemoval.js index 946f943..6768bad 100644 --- a/Community/Tdarr_Plugin_MC93_MigzImageRemoval.js +++ b/Community/Tdarr_Plugin_MC93_MigzImageRemoval.js @@ -1,5 +1,4 @@ /* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */ -// tdarrSkipTest const details = () => ({ id: 'Tdarr_Plugin_MC93_MigzImageRemoval', Stage: 'Pre-processing', diff --git a/tests/Community/Tdarr_Plugin_MC93_MigzImageRemoval.js b/tests/Community/Tdarr_Plugin_MC93_MigzImageRemoval.js new file mode 100644 index 0000000..bdb0c02 --- /dev/null +++ b/tests/Community/Tdarr_Plugin_MC93_MigzImageRemoval.js @@ -0,0 +1,46 @@ +/* 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: '', + handBrakeMode: false, + container: '.mp4', + FFmpegMode: true, + reQueueAfter: true, + infoLog: "☑File doesn't contain any unwanted image format streams.\n", + }, + }, + { + input: { + file: (() => { + const file = _.cloneDeep(require('../sampleData/media/sampleH264_2.json')); + file.ffProbeData.streams[0].codec_name = 'mjpeg'; + return file; + })(), + librarySettings: {}, + inputs: {}, + otherArguments: {}, + }, + output: { + processFile: true, + preset: ',-map 0 -c copy -max_muxing_queue_size 9999 -map -v:0 ', + handBrakeMode: false, + container: '.mkv', + FFmpegMode: true, + reQueueAfter: true, + infoLog: '☒File has image format stream, removing. \n', + }, + }, +]; + +run(tests);