mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 18:25:54 -07:00
Clarify switch input type
This commit is contained in:
parent
1455d65428
commit
0cb9e75a53
10 changed files with 17 additions and 76 deletions
|
|
@ -49,11 +49,7 @@ const details = ():IpluginDetails => ({
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'false',
|
defaultValue: 'false',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip:
|
tooltip:
|
||||||
'Toggle whether to check the bitrate of the audio codec is within a range.',
|
'Toggle whether to check the bitrate of the audio codec is within a range.',
|
||||||
|
|
|
||||||
|
|
@ -77,11 +77,7 @@ const details = (): IpluginDetails => ({
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'false',
|
defaultValue: 'false',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip:
|
tooltip:
|
||||||
'Toggle whether to enable setting audio bitrate',
|
'Toggle whether to enable setting audio bitrate',
|
||||||
|
|
@ -118,11 +114,7 @@ const details = (): IpluginDetails => ({
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'false',
|
defaultValue: 'false',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip:
|
tooltip:
|
||||||
'Toggle whether to enable setting audio samplerate',
|
'Toggle whether to enable setting audio samplerate',
|
||||||
|
|
|
||||||
|
|
@ -41,11 +41,7 @@ const details = (): IpluginDetails => ({
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'false',
|
defaultValue: 'false',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip: `
|
tooltip: `
|
||||||
Specify if you want to force conform the file to the new container,
|
Specify if you want to force conform the file to the new container,
|
||||||
|
|
|
||||||
|
|
@ -75,11 +75,7 @@ const details = (): IpluginDetails => ({
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'true',
|
defaultValue: 'true',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip: 'Specify whether to use hardware encoding if available',
|
tooltip: 'Specify whether to use hardware encoding if available',
|
||||||
},
|
},
|
||||||
|
|
@ -106,11 +102,7 @@ const details = (): IpluginDetails => ({
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'true',
|
defaultValue: 'true',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip: 'Specify whether to use hardware decoding if available',
|
tooltip: 'Specify whether to use hardware decoding if available',
|
||||||
},
|
},
|
||||||
|
|
@ -120,11 +112,7 @@ const details = (): IpluginDetails => ({
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'true',
|
defaultValue: 'true',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip: 'Specify whether to force encoding if stream already has the target codec',
|
tooltip: 'Specify whether to force encoding if stream already has the target codec',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -70,11 +70,7 @@ Useful if, for example, you want to move things like subtitle files or cover art
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'true',
|
defaultValue: 'true',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip: 'Specify whether to keep the relative path',
|
tooltip: 'Specify whether to keep the relative path',
|
||||||
},
|
},
|
||||||
|
|
@ -84,11 +80,7 @@ Useful if, for example, you want to move things like subtitle files or cover art
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'false',
|
defaultValue: 'false',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip: 'Specify whether to copy/move all files in the directory (excluding the original and working file)',
|
tooltip: 'Specify whether to copy/move all files in the directory (excluding the original and working file)',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -38,11 +38,7 @@ const details = (): IpluginDetails => ({
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'false',
|
defaultValue: 'false',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip: 'Specify whether to keep the relative path',
|
tooltip: 'Specify whether to keep the relative path',
|
||||||
},
|
},
|
||||||
|
|
@ -52,11 +48,7 @@ const details = (): IpluginDetails => ({
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'false',
|
defaultValue: 'false',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip: 'Make the copied file the working file',
|
tooltip: 'Make the copied file the working file',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -40,11 +40,7 @@ const details = ():IpluginDetails => ({
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'false',
|
defaultValue: 'false',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip: 'Specify whether to keep the relative path',
|
tooltip: 'Specify whether to keep the relative path',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -27,11 +27,7 @@ const details = (): IpluginDetails => ({
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'false',
|
defaultValue: 'false',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip: 'Specify whether to use a JSON preset or not',
|
tooltip: 'Specify whether to use a JSON preset or not',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -27,11 +27,7 @@ const details = (): IpluginDetails => ({
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'false',
|
defaultValue: 'false',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip: 'Will check if input file and cache are readable and writable',
|
tooltip: 'Will check if input file and cache are readable and writable',
|
||||||
},
|
},
|
||||||
|
|
@ -41,11 +37,7 @@ const details = (): IpluginDetails => ({
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'false',
|
defaultValue: 'false',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'dropdown',
|
type: 'switch',
|
||||||
options: [
|
|
||||||
'false',
|
|
||||||
'true',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tooltip: 'This will pause the node if the file access checks fail',
|
tooltip: 'This will pause the node if the file access checks fail',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@ import { IFileObject, Istreams } from './synced/IFileObject';
|
||||||
import Ijob from './synced/jobInterface';
|
import Ijob from './synced/jobInterface';
|
||||||
|
|
||||||
export interface IpluginInputUi {
|
export interface IpluginInputUi {
|
||||||
type: 'dropdown' | 'text' | 'textarea' | 'directory' | 'slider',
|
// boolean inputs will default to a switch
|
||||||
|
type: 'dropdown' | 'text' | 'textarea' | 'directory' | 'slider' | 'switch',
|
||||||
options?: string[],
|
options?: string[],
|
||||||
sliderOptions?: {max: number, min: number, }
|
sliderOptions?: {max: number, min: number, }
|
||||||
style?: Record<string, unknown>,
|
style?: Record<string, unknown>,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue