Skip to content

Commit

Permalink
Add Tdarr_Plugin_Greg_MP3_FFMPEG_CPU test
Browse files Browse the repository at this point in the history
  • Loading branch information
HaveAGitGat committed May 22, 2022
1 parent 7eaec0b commit 9215d34
Show file tree
Hide file tree
Showing 4 changed files with 707 additions and 1 deletion.
1 change: 0 additions & 1 deletion Community/Tdarr_Plugin_Greg_MP3_FFMPEG_CPU.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports.dependencies = ['import-fresh'];
// tdarrSkipTest
const details = () => ({
id: 'Tdarr_Plugin_Greg_MP3_FFMPEG_CPU',
Stage: 'Pre-processing',
Expand Down
59 changes: 59 additions & 0 deletions tests/Community/Tdarr_Plugin_Greg_MP3_FFMPEG_CPU.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/* 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: {
preset: ', -map_metadata 0 -id3v2_version 3 -b:a 320k',
container: '.mp3',
handbrakeMode: false,
ffmpegMode: true,
processFile: false,
reQueueAfter: true,
infoLog: 'undefined☒Codec excluded \n ☑Codec not excluded \n',
},
},
{
input: {
file: _.cloneDeep(require('../sampleData/media/sampleAAC_1.json')),
librarySettings: {},
inputs: {},
otherArguments: {},
},
output: {
preset: ', -map_metadata 0 -id3v2_version 3 -b:a 320k',
container: '.mp3',
handbrakeMode: false,
ffmpegMode: true,
processFile: false,
reQueueAfter: true,
infoLog: 'undefined☒Codec excluded \n ☑Codec not excluded \n',
},
},
{
input: {
file: _.cloneDeep(require('../sampleData/media/sampleMP3_1.json')),
librarySettings: {},
inputs: {},
otherArguments: {},
},
output: {
preset: ', -map_metadata 0 -id3v2_version 3 -b:a 320k',
container: '.mp3',
handbrakeMode: false,
ffmpegMode: true,
processFile: false,
reQueueAfter: true,
infoLog: 'undefined☒Codec excluded \n ☒Codec excluded \n',
},
},
];

run(tests);
Loading

0 comments on commit 9215d34

Please sign in to comment.