Add Tdarr_Plugin_00td_action_remux_container test

This commit is contained in:
HaveAGitGat 2022-05-21 15:13:21 +01:00
parent a5109ac921
commit 8fc04f8ab0
2 changed files with 65 additions and 1 deletions

View file

@ -1,4 +1,3 @@
// tdarrSkipTest
const details = () => ({
id: 'Tdarr_Plugin_00td_action_remux_container',
Stage: 'Pre-processing',

View file

@ -0,0 +1,65 @@
/* 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: ', -map 0 -c copy',
container: '.mkv',
handBrakeMode: false,
FFmpegMode: true,
reQueueAfter: true,
infoLog: 'File is not in mkv \n',
handbrakeMode: false
},
},
{
input: {
file: require('../sampleData/media/sampleH264_1.json'),
librarySettings: {},
inputs: {
container: 'mkv'
},
otherArguments: {},
},
output: {
processFile: true,
preset: ', -map 0 -c copy',
container: '.mkv',
handBrakeMode: false,
FFmpegMode: true,
reQueueAfter: true,
infoLog: 'File is not in mkv \n',
handbrakeMode: false
},
},
{
input: {
file: require('../sampleData/media/sampleH264_1.json'),
librarySettings: {},
inputs: {
container: 'mp4'
},
otherArguments: {},
},
output: {
processFile: false,
preset: ', -map 0 -c copy',
container: '.mp4',
handBrakeMode: false,
FFmpegMode: true,
reQueueAfter: true,
infoLog: 'File is already in mp4 \n',
handbrakeMode: false
},
},
];
run(tests);