Skip to content

Commit

Permalink
Used wrong linter
Browse files Browse the repository at this point in the history
  • Loading branch information
aunefyren committed Oct 4, 2023
1 parent 21ae391 commit ba698f9
Show file tree
Hide file tree
Showing 5 changed files with 222 additions and 222 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
`,
},
},
],
});

Expand Down
94 changes: 47 additions & 47 deletions Community/Tdarr_Plugin_f4k2_aune_refresh_files_in_sonarr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
},
},
],
});

Expand Down Expand Up @@ -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}'.`;
Expand Down
96 changes: 48 additions & 48 deletions Community/Tdarr_Plugin_f4k3_aune_rename_files_in_sonarr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
},
},
],
});

Expand Down Expand Up @@ -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}'.`;
Expand Down
Loading

0 comments on commit ba698f9

Please sign in to comment.