mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
infoLog fixes
This commit is contained in:
parent
f5b3e62934
commit
a94d2823f5
3 changed files with 10 additions and 10 deletions
|
|
@ -46,10 +46,10 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
&& file.bit_rate <= inputs.upperBound * 1000
|
||||
) {
|
||||
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 {
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -47,10 +47,10 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
const codecs = inputs.codecsToProcess.split(',');
|
||||
if (codecs.includes(fileCodec)) {
|
||||
response.processFile = true;
|
||||
response.processFile += 'File is in codecsToProcess. Moving to next plugin.';
|
||||
response.infoLog += 'File is in codecsToProcess. Moving to next plugin.';
|
||||
} else {
|
||||
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(',');
|
||||
if (codecs.includes(fileCodec)) {
|
||||
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 {
|
||||
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.';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -55,10 +55,10 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
const resolutions = inputs.resolutionsToProcess.split(',');
|
||||
if (resolutions.includes(fileResolution)) {
|
||||
response.processFile = true;
|
||||
response.processFile += 'File is in resolutionsToProcess. Moving to next plugin.';
|
||||
response.infoLog += 'File is in resolutionsToProcess. Moving to next plugin.';
|
||||
} else {
|
||||
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(',');
|
||||
if (resolutions.includes(fileResolution)) {
|
||||
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 {
|
||||
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.';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue