mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 10:45:53 -07:00
Update flows
This commit is contained in:
parent
658857fdf4
commit
25c4fab8d9
73 changed files with 4295 additions and 839 deletions
|
|
@ -2,8 +2,16 @@ import { IFileObject, Istreams } from './synced/IFileObject';
|
|||
import Ijob from './synced/jobInterface';
|
||||
|
||||
export interface IpluginInputUi {
|
||||
type: 'dropdown' | 'text',
|
||||
options: string[],
|
||||
type: 'dropdown' | 'text' | 'textarea',
|
||||
options?: string[],
|
||||
style?:Record<string, unknown>,
|
||||
onSelect?: {
|
||||
'hevc': {
|
||||
update: {
|
||||
quality: '28',
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
export interface IpluginInputs {
|
||||
|
|
@ -43,18 +51,23 @@ export interface IupdateWorker {
|
|||
|
||||
export interface IffmpegCommandStream extends Istreams {
|
||||
removed: boolean,
|
||||
targetCodec: string,
|
||||
args: string[],
|
||||
forceEncoding: boolean,
|
||||
inputArgs: string[],
|
||||
outputArgs: string[],
|
||||
}
|
||||
|
||||
export interface IffmpegCommand {
|
||||
inputFiles: string[],
|
||||
streams: IffmpegCommandStream[]
|
||||
container: string,
|
||||
hardwareDecoding: boolean,
|
||||
shouldProcess: boolean,
|
||||
overallInputArguments: string[],
|
||||
overallOuputArguments: string[],
|
||||
}
|
||||
|
||||
export interface Ivariables {
|
||||
ffmpegCommand?: IffmpegCommand
|
||||
ffmpegCommand: IffmpegCommand
|
||||
}
|
||||
|
||||
export interface IpluginOutputArgs {
|
||||
|
|
@ -63,7 +76,6 @@ export interface IpluginOutputArgs {
|
|||
_id: string,
|
||||
},
|
||||
variables: Ivariables
|
||||
|
||||
}
|
||||
|
||||
export interface IpluginInputArgs {
|
||||
|
|
@ -92,5 +104,16 @@ export interface IpluginInputArgs {
|
|||
lastSuccessfulRun: any,
|
||||
updateWorker: IupdateWorker,
|
||||
logFullCliOutput: boolean,
|
||||
logOutcome:(outcome:string) => void,
|
||||
logOutcome: (outcome: string) => void,
|
||||
deps: {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
fsextra: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
parseArgsStringToArgv: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
importFresh(path: string): any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
axiosMiddleware: (endpoint: string, data: Record<string, unknown>) => Promise<any>,
|
||||
requireFromString: (pluginText: string, relativePath:string) => Record<string, unknown>,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export interface Itags {
|
|||
}
|
||||
export interface Istreams {
|
||||
codec_name: string;
|
||||
codec_type?: string,
|
||||
codec_type: string,
|
||||
bit_rate?: number,
|
||||
channels?: number,
|
||||
tags?: Itags,
|
||||
|
|
@ -134,6 +134,7 @@ export interface ImediaInfo {
|
|||
'IsStreamable': string,
|
||||
'Encoded_Application': string,
|
||||
'Encoded_Library': string,
|
||||
BitRate: number,
|
||||
'extra': {
|
||||
'ErrorDetectionType': string,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue