mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 01:36:08 -07:00
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:
parent
ad7ec9d2b9
commit
dfe9c5a527
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ function plugin(file, librarySettings, inputs) {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Check if inputs.container has been configured. If it hasn't then exit plugin.
|
// Check if inputs.container has been configured. If it hasn't then exit plugin.
|
||||||
if (inputs.container == "") {
|
if (!inputs || inputs.container == "") {
|
||||||
response.infoLog +=
|
response.infoLog +=
|
||||||
"☒Container has not been configured within plugin settings, please configure required options. Skipping this plugin. \n";
|
"☒Container has not been configured within plugin settings, please configure required options. Skipping this plugin. \n";
|
||||||
response.processFile = false;
|
response.processFile = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue