From 09ae5a58e4480e7b4f7218e9f249e6773c1f6a6b Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Wed, 15 Nov 2023 17:51:32 +0000 Subject: [PATCH] Fix lint errors regarding unused vars --- Community/Tdarr_Plugin_JB69_JBHEVCQSV_MinimalFile.js | 10 +++++----- .../Tdarr_Plugin_scha_rename_based_on_codec_schadi.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Community/Tdarr_Plugin_JB69_JBHEVCQSV_MinimalFile.js b/Community/Tdarr_Plugin_JB69_JBHEVCQSV_MinimalFile.js index c9c522e..84bbafa 100755 --- a/Community/Tdarr_Plugin_JB69_JBHEVCQSV_MinimalFile.js +++ b/Community/Tdarr_Plugin_JB69_JBHEVCQSV_MinimalFile.js @@ -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 diff --git a/Community/Tdarr_Plugin_scha_rename_based_on_codec_schadi.js b/Community/Tdarr_Plugin_scha_rename_based_on_codec_schadi.js index aab6e81..48537d3 100644 --- a/Community/Tdarr_Plugin_scha_rename_based_on_codec_schadi.js +++ b/Community/Tdarr_Plugin_scha_rename_based_on_codec_schadi.js @@ -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