Prevent breaking changes regarding inputs

make-only-subtitle-default
HaveAGitGat 4 years ago
parent a9c579c0f2
commit 034250f74a

@ -11,8 +11,8 @@ const details = () => ({
Tags: 'pre-processing,ffmpeg,audio only,configurable', Tags: 'pre-processing,ffmpeg,audio only,configurable',
Inputs: [{ Inputs: [{
name: 'aac_stereo', name: 'aac_stereo',
type: 'boolean', type: 'string',
defaultValue: false, defaultValue: '',
inputUI: { inputUI: {
type: 'text', type: 'text',
}, },
@ -136,7 +136,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
// Catch error here incase user left inputs.downmix empty. // Catch error here incase user left inputs.downmix empty.
try { try {
// Check if inputs.aac_stereo is set to true. // Check if inputs.aac_stereo is set to true.
if (inputs.aac_stereo === true) { if (inputs.aac_stereo === 'true') {
// Check if codec_name for stream is NOT aac AND check if channel ammount is 2. // Check if codec_name for stream is NOT aac AND check if channel ammount is 2.
if ( if (
file.ffProbeData.streams[i].codec_name !== 'aac' file.ffProbeData.streams[i].codec_name !== 'aac'

Loading…
Cancel
Save