mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
81 lines
1.8 KiB
JavaScript
81 lines
1.8 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: '-Z "Very Fast 1080p30" --all-subtitles --all-audio',
|
|
container: '.mkv',
|
|
handBrakeMode: true,
|
|
FFmpegMode: false,
|
|
reQueueAfter: true,
|
|
infoLog: '☒File is not in desired codec! \n',
|
|
},
|
|
},
|
|
{
|
|
input: {
|
|
file: require('../sampleData/media/sampleH265_1.json'),
|
|
librarySettings: {},
|
|
inputs: {},
|
|
otherArguments: {},
|
|
},
|
|
output: {
|
|
processFile: false,
|
|
preset: '',
|
|
container: '.mp4',
|
|
handBrakeMode: false,
|
|
FFmpegMode: false,
|
|
reQueueAfter: false,
|
|
infoLog: '☑File is already in hevc! \n',
|
|
},
|
|
},
|
|
{
|
|
input: {
|
|
file: require('../sampleData/media/sampleH264_1.json'),
|
|
librarySettings: {},
|
|
inputs: {
|
|
codecs_to_exclude: 'h264',
|
|
},
|
|
otherArguments: {},
|
|
},
|
|
output: {
|
|
processFile: false,
|
|
preset: '',
|
|
container: '.mp4',
|
|
handBrakeMode: false,
|
|
FFmpegMode: false,
|
|
reQueueAfter: false,
|
|
infoLog: '☑File is already in h264! \n',
|
|
},
|
|
},
|
|
{
|
|
input: {
|
|
file: require('../sampleData/media/sampleH264_1.json'),
|
|
librarySettings: {},
|
|
inputs: {
|
|
codecs_to_exclude: 'hevc',
|
|
cli: 'handbrake',
|
|
transcode_arguments: '-Z "Very Fast 480p30"',
|
|
},
|
|
otherArguments: {},
|
|
},
|
|
output: {
|
|
processFile: true,
|
|
preset: '-Z "Very Fast 480p30"',
|
|
container: '.mkv',
|
|
handBrakeMode: true,
|
|
FFmpegMode: false,
|
|
reQueueAfter: true,
|
|
infoLog: '☒File is not in desired codec! \n',
|
|
},
|
|
},
|
|
];
|
|
|
|
run(tests);
|