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
This commit is contained in:
Jay Boehm 2020-06-15 18:13:38 -04:00 committed by GitHub
parent ad7ec9d2b9
commit dfe9c5a527
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;