Tdarr_Plugins/tests/Community/Tdarr_Plugin_00td_action_remux_container.js
2023-08-20 17:29:04 +01:00

65 lines
1.4 KiB
JavaScript

/* 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,
},
},
];
void run(tests);