Add Tdarr_Plugin_a9hc_HaveAGitGat_HandBrake_H264_Fast1080p30 test

This commit is contained in:
HaveAGitGat 2022-05-21 19:47:35 +01:00
parent 406480df71
commit d66b54506b
4 changed files with 94 additions and 2 deletions

View file

@ -36,6 +36,30 @@ const tests = [
infoLog: '☒File is not in h264! \n',
},
},
{
input: {
file: () => {
const file = require('../sampleData/media/sampleH264_1.json');
file.meta.Title = undefined;
return file;
},
librarySettings: {},
inputs: {},
otherArguments: {},
},
output: {
processFile: false,
preset: '',
container: '.mp4',
handBrakeMode: false,
FFmpegMode: false,
reQueueAfter: false,
infoLog: '☑File is already in h264! \n'
+ '☑File has no subs \n'
+ '☑File has no title metadata☑File has aac track \n'
+ '☑File meets conditions! \n',
},
},
];
run(tests);

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_metadata -1 -map 0 -c copy',
container: '.mp4',
handBrakeMode: false,
FFmpegMode: true,
reQueueAfter: true,
infoLog: '☑File is already in h264! \n☑File has no subs \n☒File has title metadata \n',
},
},
{
input: {
file: require('../sampleData/media/sampleH265_1.json'),
librarySettings: {},
inputs: {},
otherArguments: {},
},
output: {
processFile: true,
preset: '-Z "Fast 1080p30"',
container: '.mp4',
handBrakeMode: true,
FFmpegMode: false,
reQueueAfter: true,
infoLog: '☒File is not in h264! \n',
},
},
{
input: {
file: () => {
const file = require('../sampleData/media/sampleH264_1.json');
file.meta.Title = undefined;
return file;
},
librarySettings: {},
inputs: {},
otherArguments: {},
},
output: {
processFile: false,
preset: '',
container: '.mp4',
handBrakeMode: false,
FFmpegMode: false,
reQueueAfter: false,
infoLog: '☑File is already in h264! \n'
+ '☑File has no subs \n'
+ '☑File has no title metadata☑File has aac track \n'
+ '☑File meets conditions! \n',
},
},
];
run(tests);