mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 18:25:54 -07:00
Prevent breaking changes regarding inputs
This commit is contained in:
parent
a9c579c0f2
commit
034250f74a
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue