mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Set original after adding typeIndex
This commit is contained in:
parent
35ba66e705
commit
136d8f2a90
1 changed files with 2 additions and 2 deletions
|
|
@ -111,13 +111,13 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
|
|||
|
||||
let streams: IffmpegCommandStream[] = JSON.parse(JSON.stringify(args.variables.ffmpegCommand.streams));
|
||||
|
||||
const originalStreams = JSON.stringify(streams);
|
||||
|
||||
streams.forEach((stream, index) => {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
stream.typeIndex = index;
|
||||
});
|
||||
|
||||
const originalStreams = JSON.stringify(streams);
|
||||
|
||||
const sortStreams = (sortType: {
|
||||
inputs: string,
|
||||
getValue: (stream: Istreams) => string,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue