Update Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js

if inputs isn't defined, then inputs.container causes a plugin error that is not caught by the if(inputs.container == "")
this change checks the inputs first
make-only-subtitle-default
Jay Boehm 6 years ago committed by GitHub
parent ad7ec9d2b9
commit dfe9c5a527
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,7 +65,7 @@ function plugin(file, librarySettings, inputs) {
};
// Check if inputs.container has been configured. If it hasn't then exit plugin.
if (inputs.container == "") {
if (!inputs || inputs.container == "") {
response.infoLog +=
"☒Container has not been configured within plugin settings, please configure required options. Skipping this plugin. \n";
response.processFile = false;

Loading…
Cancel
Save