From ba698f95d946c1303af3e41a7de76c29f9f3404a Mon Sep 17 00:00:00 2001 From: aunefyren Date: Wed, 4 Oct 2023 13:53:21 +0200 Subject: [PATCH] Used wrong linter --- ...ion_remove_stream_by_specified_property.js | 64 ++++++------- ...lugin_f4k2_aune_refresh_files_in_sonarr.js | 94 +++++++++--------- ...Plugin_f4k3_aune_rename_files_in_sonarr.js | 96 +++++++++---------- ...lugin_f4k4_aune_refresh_files_in_radarr.js | 94 +++++++++--------- ...Plugin_f4k5_aune_rename_files_in_radarr.js | 96 +++++++++---------- 5 files changed, 222 insertions(+), 222 deletions(-) diff --git a/Community/Tdarr_Plugin_00td_action_remove_stream_by_specified_property.js b/Community/Tdarr_Plugin_00td_action_remove_stream_by_specified_property.js index 16bb20fd6..a66da913e 100644 --- a/Community/Tdarr_Plugin_00td_action_remove_stream_by_specified_property.js +++ b/Community/Tdarr_Plugin_00td_action_remove_stream_by_specified_property.js @@ -10,60 +10,60 @@ const details = () => ({ Version: '1.00', Tags: 'action', Inputs: [{ - name: 'codecTypeFilter', - type: 'string', - defaultValue: 'subtitle', - inputUI: { - type: 'text', - }, - tooltip: `Enter values of the stream codec type to process. Nothing/empty input means all types of streams will + name: 'codecTypeFilter', + type: 'string', + defaultValue: 'subtitle', + inputUI: { + type: 'text', + }, + tooltip: `Enter values of the stream codec type to process. Nothing/empty input means all types of streams will be inspected for processing. For example, if removing by codec_name on video streams, enter video: \\nExample:\\n video,subtitle,audio `, + }, + { + name: 'propertyToCheck', + type: 'string', + defaultValue: '', + inputUI: { + type: 'text', }, - { - name: 'propertyToCheck', - type: 'string', - defaultValue: '', - inputUI: { - type: 'text', - }, - tooltip: `Enter one stream property to check for values. + tooltip: `Enter one stream property to check for values. \\nExample:\\n codec_name `, + }, + { + name: 'valuesToRemove', + type: 'string', + defaultValue: '', + inputUI: { + type: 'text', }, - { - name: 'valuesToRemove', - type: 'string', - defaultValue: '', - inputUI: { - type: 'text', - }, - tooltip: `Enter values of the property above to remove. For example, if removing by codec_name, could enter ac3,aac: + tooltip: `Enter values of the property above to remove. For example, if removing by codec_name, could enter ac3,aac: \\nExample:\\n ac3,aac `, + }, + { + name: 'removeIfPropertyMissing', + type: 'string', + defaultValue: '', + inputUI: { + type: 'text', }, - { - name: 'removeIfPropertyMissing', - type: 'string', - defaultValue: '', - inputUI: { - type: 'text', - }, - tooltip: `Enter one or more properties to check for its existance. If the property is missing or null, + tooltip: `Enter one or more properties to check for its existance. If the property is missing or null, the stream will be removed. Useful for fixing corrupt streams. For example, if codec_name is missing, the stream will be removed: \\nExample:\\n codec_name `, - }, + }, ], }); diff --git a/Community/Tdarr_Plugin_f4k2_aune_refresh_files_in_sonarr.js b/Community/Tdarr_Plugin_f4k2_aune_refresh_files_in_sonarr.js index 941d9c9e8..28b7ce9b3 100644 --- a/Community/Tdarr_Plugin_f4k2_aune_refresh_files_in_sonarr.js +++ b/Community/Tdarr_Plugin_f4k2_aune_refresh_files_in_sonarr.js @@ -18,74 +18,74 @@ const details = () => ({ Tags: '3rd party,post-processing,configurable', Inputs: [{ - name: 'Url_Protocol', - type: 'string', - defaultValue: 'http', - inputUI: { - type: 'dropdown', - options: [ - 'http', - 'https', - ], - }, - tooltip: ` + name: 'Url_Protocol', + type: 'string', + defaultValue: 'http', + inputUI: { + type: 'dropdown', + options: [ + 'http', + 'https', + ], + }, + tooltip: ` Specified the type of request to make, http:// or https:// \\nExample:\\n http \\nExample:\\n https`, + }, + { + name: 'Url_Sonarr', + type: 'string', + defaultValue: 'localhost', + inputUI: { + type: 'text', }, - { - name: 'Url_Sonarr', - type: 'string', - defaultValue: 'localhost', - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` Enter the IP address/URL Tdarr uses to reach Sonarr. \\nExample:\\n 192.168.0.10 \\nExample:\\n subdomain.domain.tld`, + }, + { + name: 'Sonarr_Port', + type: 'number', + defaultValue: 8989, + inputUI: { + type: 'text', }, - { - name: 'Sonarr_Port', - type: 'number', - defaultValue: 8989, - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` The port required to access Sonarr \\nExample:\\n 8989`, + }, + { + name: 'Sonarr_APIKey', + type: 'string', + defaultValue: '', + inputUI: { + type: 'text', }, - { - name: 'Sonarr_APIKey', - type: 'string', - defaultValue: '', - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` Enter the Sonarr API key. \\n You can find it within Sonarr at /settings/general. \\n\\n \\nExample:\\n 3ff1ae1c39a2a2a397315e15266dea48`, + }, + { + name: 'After_Sleep', + type: 'number', + defaultValue: 0, + inputUI: { + type: 'text', }, - { - name: 'After_Sleep', - type: 'number', - defaultValue: 0, - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` How many ms should Tdarr sleep to wait for Sonarr to finish afterward? \\n \\nExample:\\n 1000`, - }, + }, ], }); @@ -213,9 +213,9 @@ const plugin = async (file, librarySettings, inputs, otherArguments) => { try { await new Promise((resolve) => { axios.post(url2, { - name: APICommand, - seriesId: SeriesID - }) + name: APICommand, + seriesId: SeriesID + }) .then(function (res) { console.log(`Got status code '${res.status}'.`) response.infoLog += `\n☑ Got status code '${res.status}'.`; diff --git a/Community/Tdarr_Plugin_f4k3_aune_rename_files_in_sonarr.js b/Community/Tdarr_Plugin_f4k3_aune_rename_files_in_sonarr.js index 0a9b26a97..0d7b992af 100644 --- a/Community/Tdarr_Plugin_f4k3_aune_rename_files_in_sonarr.js +++ b/Community/Tdarr_Plugin_f4k3_aune_rename_files_in_sonarr.js @@ -16,74 +16,74 @@ const details = () => ({ Tags: '3rd party,post-processing,configurable', Inputs: [{ - name: 'Url_Protocol', - type: 'string', - defaultValue: 'http', - inputUI: { - type: 'dropdown', - options: [ - 'http', - 'https', - ], - }, - tooltip: ` + name: 'Url_Protocol', + type: 'string', + defaultValue: 'http', + inputUI: { + type: 'dropdown', + options: [ + 'http', + 'https', + ], + }, + tooltip: ` Specified the type of request to make, http:// or https:// \\nExample:\\n http \\nExample:\\n https`, + }, + { + name: 'Url_Sonarr', + type: 'string', + defaultValue: 'localhost', + inputUI: { + type: 'text', }, - { - name: 'Url_Sonarr', - type: 'string', - defaultValue: 'localhost', - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` Enter the IP address/URL Tdarr uses to reach Sonarr. \\nExample:\\n 192.168.0.10 \\nExample:\\n subdomain.domain.tld`, + }, + { + name: 'Sonarr_Port', + type: 'number', + defaultValue: 8989, + inputUI: { + type: 'text', }, - { - name: 'Sonarr_Port', - type: 'number', - defaultValue: 8989, - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` The port required to access Sonarr \\nExample:\\n 8989`, + }, + { + name: 'Sonarr_APIKey', + type: 'string', + defaultValue: '', + inputUI: { + type: 'text', }, - { - name: 'Sonarr_APIKey', - type: 'string', - defaultValue: '', - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` Enter the Sonarr API key. \\n You can find it within Sonarr at /settings/general. \\n\\n \\nExample:\\n 3ff1ae1c39a2a2a397315e15266dea48`, + }, + { + name: 'After_Sleep', + type: 'number', + defaultValue: 0, + inputUI: { + type: 'text', }, - { - name: 'After_Sleep', - type: 'number', - defaultValue: 0, - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` How many ms should Tdarr sleep to wait for Sonarr to finish afterward? \\n \\nExample:\\n 1000`, - }, + }, ], }); @@ -286,10 +286,10 @@ const plugin = async (file, librarySettings, inputs, otherArguments) => { try { await new Promise((resolve) => { axios.post(url3, { - name: APICommand, - seriesId: SeriesID, - files: fileArray - }) + name: APICommand, + seriesId: SeriesID, + files: fileArray + }) .then(function (res) { console.log(`Got status code '${res.status}'.`) response.infoLog += `\n☑ Got status code '${res.status}'.`; diff --git a/Community/Tdarr_Plugin_f4k4_aune_refresh_files_in_radarr.js b/Community/Tdarr_Plugin_f4k4_aune_refresh_files_in_radarr.js index 71f06bdb3..c7051a7e4 100644 --- a/Community/Tdarr_Plugin_f4k4_aune_refresh_files_in_radarr.js +++ b/Community/Tdarr_Plugin_f4k4_aune_refresh_files_in_radarr.js @@ -16,74 +16,74 @@ const details = () => ({ Tags: '3rd party,post-processing,configurable', Inputs: [{ - name: 'Url_Protocol', - type: 'string', - defaultValue: 'http', - inputUI: { - type: 'dropdown', - options: [ - 'http', - 'https', - ], - }, - tooltip: ` + name: 'Url_Protocol', + type: 'string', + defaultValue: 'http', + inputUI: { + type: 'dropdown', + options: [ + 'http', + 'https', + ], + }, + tooltip: ` Specified the type of request to make, http:// or https:// \\nExample:\\n http \\nExample:\\n https`, + }, + { + name: 'Url_Radarr', + type: 'string', + defaultValue: 'localhost', + inputUI: { + type: 'text', }, - { - name: 'Url_Radarr', - type: 'string', - defaultValue: 'localhost', - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` Enter the IP address/URL Tdarr uses to reach Radarr. \\nExample:\\n 192.168.0.10 \\nExample:\\n subdomain.domain.tld`, + }, + { + name: 'Radarr_Port', + type: 'number', + defaultValue: 7878, + inputUI: { + type: 'text', }, - { - name: 'Radarr_Port', - type: 'number', - defaultValue: 7878, - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` The port required to access Radarr \\nExample:\\n 7878`, + }, + { + name: 'Radarr_APIKey', + type: 'string', + defaultValue: '', + inputUI: { + type: 'text', }, - { - name: 'Radarr_APIKey', - type: 'string', - defaultValue: '', - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` Enter the Radarr API key. \\n You can find it within Radarr at /settings/general. \\n\\n \\nExample:\\n 3ff1ae1c39a2a2a397315e15266dea48`, + }, + { + name: 'After_Sleep', + type: 'number', + defaultValue: 0, + inputUI: { + type: 'text', }, - { - name: 'After_Sleep', - type: 'number', - defaultValue: 0, - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` How many ms should Tdarr sleep to wait for Radarr to finish afterward? \\n \\nExample:\\n 1000`, - }, + }, ], }); @@ -205,9 +205,9 @@ const plugin = async (file, librarySettings, inputs, otherArguments) => { try { await new Promise((resolve) => { axios.post(url2, { - name: APICommand, - movieIds: [MovieID] - }) + name: APICommand, + movieIds: [MovieID] + }) .then(function (res) { console.log(`Got status code '${res.status}'.`) response.infoLog += `\n☑ Got status code '${res.status}'.`; diff --git a/Community/Tdarr_Plugin_f4k5_aune_rename_files_in_radarr.js b/Community/Tdarr_Plugin_f4k5_aune_rename_files_in_radarr.js index 54cbb4973..80b14008e 100644 --- a/Community/Tdarr_Plugin_f4k5_aune_rename_files_in_radarr.js +++ b/Community/Tdarr_Plugin_f4k5_aune_rename_files_in_radarr.js @@ -16,74 +16,74 @@ const details = () => ({ Tags: '3rd party,post-processing,configurable', Inputs: [{ - name: 'Url_Protocol', - type: 'string', - defaultValue: 'http', - inputUI: { - type: 'dropdown', - options: [ - 'http', - 'https', - ], - }, - tooltip: ` + name: 'Url_Protocol', + type: 'string', + defaultValue: 'http', + inputUI: { + type: 'dropdown', + options: [ + 'http', + 'https', + ], + }, + tooltip: ` Specified the type of request to make, http:// or https:// \\nExample:\\n http \\nExample:\\n https`, + }, + { + name: 'Url_Radarr', + type: 'string', + defaultValue: 'localhost', + inputUI: { + type: 'text', }, - { - name: 'Url_Radarr', - type: 'string', - defaultValue: 'localhost', - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` Enter the IP address/URL Tdarr uses to reach Radarr. \\nExample:\\n 192.168.0.10 \\nExample:\\n subdomain.domain.tld`, + }, + { + name: 'Radarr_Port', + type: 'number', + defaultValue: 7878, + inputUI: { + type: 'text', }, - { - name: 'Radarr_Port', - type: 'number', - defaultValue: 7878, - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` The port required to access Radarr \\nExample:\\n 7878`, + }, + { + name: 'Radarr_APIKey', + type: 'string', + defaultValue: '', + inputUI: { + type: 'text', }, - { - name: 'Radarr_APIKey', - type: 'string', - defaultValue: '', - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` Enter the Radarr API key. \\n You can find it within Radarr at /settings/general. \\n\\n \\nExample:\\n 3ff1ae1c39a2a2a397315e15266dea48`, + }, + { + name: 'After_Sleep', + type: 'number', + defaultValue: 0, + inputUI: { + type: 'text', }, - { - name: 'After_Sleep', - type: 'number', - defaultValue: 0, - inputUI: { - type: 'text', - }, - tooltip: ` + tooltip: ` How many ms should Tdarr sleep to wait for Radarr to finish afterward? \\n \\nExample:\\n 1000`, - }, + }, ], }); @@ -262,10 +262,10 @@ const plugin = async (file, librarySettings, inputs, otherArguments) => { try { await new Promise((resolve) => { axios.post(url3, { - name: APICommand, - movieId: MovieID, - files: fileArray - }) + name: APICommand, + movieId: MovieID, + files: fileArray + }) .then(function (res) { console.log(`Got status code '${res.status}'.`) response.infoLog += `\n☑ Got status code '${res.status}'.`;