mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 02:35:54 -07:00
Fix lint errors regarding unused vars
This commit is contained in:
parent
839d32bc76
commit
09ae5a58e4
2 changed files with 6 additions and 6 deletions
|
|
@ -248,7 +248,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
infoLog: '',
|
infoLog: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
const currentFileName = file._id; // .replace(/'/g, "'\"'\"'");
|
// const currentFileName = file._id; // .replace(/'/g, "'\"'\"'");
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
/// ///////////////////////////////////////////////////////////////////////////////////////////////////
|
/// ///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
@ -285,8 +285,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
|
|
||||||
/// ///////////////////////////////////////////////////////////////////////////////////////////////////
|
/// ///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
const proc = require('child_process');
|
// let bolStatsAreCurrent = false;
|
||||||
let bolStatsAreCurrent = false;
|
|
||||||
|
|
||||||
if (file.fileMedium !== 'video') {
|
if (file.fileMedium !== 'video') {
|
||||||
response.processFile = false;
|
response.processFile = false;
|
||||||
|
|
@ -320,7 +319,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
|
|
||||||
response.infoLog += `JBDate: ${JBDate}, StatsDate: ${datStats}\n`;
|
response.infoLog += `JBDate: ${JBDate}, StatsDate: ${datStats}\n`;
|
||||||
if (datStats >= JBDate) {
|
if (datStats >= JBDate) {
|
||||||
bolStatsAreCurrent = true;
|
// bolStatsAreCurrent = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const statsThres = Date.parse(new Date(new Date().setDate(new Date().getDate() - intStatsDays)).toISOString());
|
const statsThres = Date.parse(new Date(new Date().setDate(new Date().getDate() - intStatsDays)).toISOString());
|
||||||
|
|
@ -331,7 +330,8 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
response.infoLog += `StatsThres: ${statsThres}, StatsDate: ${datStats}\n`;
|
response.infoLog += `StatsThres: ${statsThres}, StatsDate: ${datStats}\n`;
|
||||||
}
|
}
|
||||||
if (datStats >= statsThres) {
|
if (datStats >= statsThres) {
|
||||||
bolStatsAreCurrent = true;
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
// bolStatsAreCurrent = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// No longer needed if updating stats in Tdarr
|
// No longer needed if updating stats in Tdarr
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ const details = () => ({
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
const plugin = (file, librarySettings, inputs, otherArguments) => {
|
const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
const lib = require('../methods/lib')();
|
const lib = require('../methods/lib')();
|
||||||
// eslint-disable-next-line no-unused-vars,no-param-reassign
|
// eslint-disable-next-line no-unused-vars,no-param-reassign
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue