Merge pull request #546 from HaveAGitGat/lint-fixes

Fix lint errors regarding unused vars
make-only-subtitle-default
HaveAGitGat 2 years ago committed by GitHub
commit 4191ed0936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save