mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Merge pull request #546 from HaveAGitGat/lint-fixes
Fix lint errors regarding unused vars
This commit is contained in:
commit
4191ed0936
2 changed files with 6 additions and 6 deletions
|
|
@ -248,7 +248,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
infoLog: '',
|
||||
};
|
||||
|
||||
const currentFileName = file._id; // .replace(/'/g, "'\"'\"'");
|
||||
// const currentFileName = file._id; // .replace(/'/g, "'\"'\"'");
|
||||
|
||||
// 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') {
|
||||
response.processFile = false;
|
||||
|
|
@ -320,7 +319,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
|
||||
response.infoLog += `JBDate: ${JBDate}, StatsDate: ${datStats}\n`;
|
||||
if (datStats >= JBDate) {
|
||||
bolStatsAreCurrent = true;
|
||||
// bolStatsAreCurrent = true;
|
||||
}
|
||||
} else {
|
||||
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`;
|
||||
}
|
||||
if (datStats >= statsThres) {
|
||||
bolStatsAreCurrent = true;
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
// bolStatsAreCurrent = true;
|
||||
}
|
||||
}
|
||||
// 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 lib = require('../methods/lib')();
|
||||
// eslint-disable-next-line no-unused-vars,no-param-reassign
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue