mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 02:05:54 -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));
|
let streams: IffmpegCommandStream[] = JSON.parse(JSON.stringify(args.variables.ffmpegCommand.streams));
|
||||||
|
|
||||||
const originalStreams = JSON.stringify(streams);
|
|
||||||
|
|
||||||
streams.forEach((stream, index) => {
|
streams.forEach((stream, index) => {
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
stream.typeIndex = index;
|
stream.typeIndex = index;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const originalStreams = JSON.stringify(streams);
|
||||||
|
|
||||||
const sortStreams = (sortType: {
|
const sortStreams = (sortType: {
|
||||||
inputs: string,
|
inputs: string,
|
||||||
getValue: (stream: Istreams) => string,
|
getValue: (stream: Istreams) => string,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue