Fix plugin check errors

This commit is contained in:
HaveAGitGat 2023-05-08 20:16:11 +01:00
parent 62ef9e7ad8
commit d25d7c86d0
2 changed files with 4 additions and 6 deletions

View file

@ -1,5 +1,3 @@
const { strHasValue } = require('../methods/utils');
const details = () => ({ const details = () => ({
id: 'Tdarr_Plugin_00td_filter_by_file_property', id: 'Tdarr_Plugin_00td_filter_by_file_property',
Stage: 'Pre-processing', Stage: 'Pre-processing',
@ -36,7 +34,7 @@ const details = () => ({
{ {
name: 'exactMatch', name: 'exactMatch',
type: 'boolean', type: 'boolean',
defaultValue: 'true', defaultValue: true,
inputUI: { inputUI: {
type: 'dropdown', type: 'dropdown',
options: [ options: [
@ -67,6 +65,7 @@ const details = () => ({
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
const plugin = (file, librarySettings, inputs, otherArguments) => { const plugin = (file, librarySettings, inputs, otherArguments) => {
const { strHasValue } = require('../methods/utils');
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
inputs = lib.loadDefaultValues(inputs, details); inputs = lib.loadDefaultValues(inputs, details);

View file

@ -1,5 +1,3 @@
const { strHasValue } = require('../methods/utils');
const details = () => ({ const details = () => ({
id: 'Tdarr_Plugin_00td_filter_by_stream_tag', id: 'Tdarr_Plugin_00td_filter_by_stream_tag',
Stage: 'Pre-processing', Stage: 'Pre-processing',
@ -36,7 +34,7 @@ const details = () => ({
{ {
name: 'exactMatch', name: 'exactMatch',
type: 'boolean', type: 'boolean',
defaultValue: 'true', defaultValue: true,
inputUI: { inputUI: {
type: 'dropdown', type: 'dropdown',
options: [ options: [
@ -67,6 +65,7 @@ const details = () => ({
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
const plugin = (file, librarySettings, inputs, otherArguments) => { const plugin = (file, librarySettings, inputs, otherArguments) => {
const { strHasValue } = require('../methods/utils');
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
inputs = lib.loadDefaultValues(inputs, details); inputs = lib.loadDefaultValues(inputs, details);