infoLog fixes

This commit is contained in:
HaveAGitGat 2022-01-11 18:53:09 +00:00
parent f5b3e62934
commit a94d2823f5
3 changed files with 10 additions and 10 deletions

View file

@ -46,10 +46,10 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
&& file.bit_rate <= inputs.upperBound * 1000 && file.bit_rate <= inputs.upperBound * 1000
) { ) {
response.processFile = true; response.processFile = true;
response.processFile += '☑File bitrate is within filter limits. Moving to next plugin.'; response.infoLog += '☑File bitrate is within filter limits. Moving to next plugin.';
} else { } else {
response.processFile = false; response.processFile = false;
response.processFile += '☒File bitrate is not within filter limits. Breaking out of plugin stack.\n'; response.infoLog += '☒File bitrate is not within filter limits. Breaking out of plugin stack.\n';
return response; return response;
} }
return response; return response;

View file

@ -47,10 +47,10 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
const codecs = inputs.codecsToProcess.split(','); const codecs = inputs.codecsToProcess.split(',');
if (codecs.includes(fileCodec)) { if (codecs.includes(fileCodec)) {
response.processFile = true; response.processFile = true;
response.processFile += 'File is in codecsToProcess. Moving to next plugin.'; response.infoLog += 'File is in codecsToProcess. Moving to next plugin.';
} else { } else {
response.processFile = false; response.processFile = false;
response.processFile += 'File is not in codecsToProcess. Breaking out of plugin stack.'; response.infoLog += 'File is not in codecsToProcess. Breaking out of plugin stack.';
} }
} }
@ -58,10 +58,10 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
const codecs = inputs.codecsToNotProcess.split(','); const codecs = inputs.codecsToNotProcess.split(',');
if (codecs.includes(fileCodec)) { if (codecs.includes(fileCodec)) {
response.processFile = false; response.processFile = false;
response.processFile += 'File is in codecsToNotProcess. Breaking out of plugin stack.'; response.infoLog += 'File is in codecsToNotProcess. Breaking out of plugin stack.';
} else { } else {
response.processFile = true; response.processFile = true;
response.processFile += 'File is not in codecsToNotProcess. Moving to next plugin.'; response.infoLog += 'File is not in codecsToNotProcess. Moving to next plugin.';
} }
} }

View file

@ -55,10 +55,10 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
const resolutions = inputs.resolutionsToProcess.split(','); const resolutions = inputs.resolutionsToProcess.split(',');
if (resolutions.includes(fileResolution)) { if (resolutions.includes(fileResolution)) {
response.processFile = true; response.processFile = true;
response.processFile += 'File is in resolutionsToProcess. Moving to next plugin.'; response.infoLog += 'File is in resolutionsToProcess. Moving to next plugin.';
} else { } else {
response.processFile = false; response.processFile = false;
response.processFile += 'File is not in resolutionsToProcess. Breaking out of plugin stack.'; response.infoLog += 'File is not in resolutionsToProcess. Breaking out of plugin stack.';
} }
} }
@ -66,10 +66,10 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
const resolutions = inputs.resolutionsToNotProcess.split(','); const resolutions = inputs.resolutionsToNotProcess.split(',');
if (resolutions.includes(fileResolution)) { if (resolutions.includes(fileResolution)) {
response.processFile = false; response.processFile = false;
response.processFile += 'File is in resolutionsToNotProcess. Breaking out of plugin stack.'; response.infoLog += 'File is in resolutionsToNotProcess. Breaking out of plugin stack.';
} else { } else {
response.processFile = true; response.processFile = true;
response.processFile += 'File is not in resolutionsToNotProcess. Moving to next plugin.'; response.infoLog += 'File is not in resolutionsToNotProcess. Moving to next plugin.';
} }
} }