mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-18 11:46:25 -07:00
Add original container option.
This commit is contained in:
parent
87ab148381
commit
147115cc12
2 changed files with 29 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ HandBrake examples:
|
|||
type: 'text',
|
||||
},
|
||||
tooltip:
|
||||
'Enter the desired container',
|
||||
'Enter the desired container. Set to "original" to keep the original container.',
|
||||
},
|
||||
],
|
||||
});
|
||||
|
|
@ -91,7 +91,13 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
};
|
||||
|
||||
response.preset = inputs.arguments;
|
||||
response.container = `.${inputs.container}`;
|
||||
|
||||
if (inputs.container === 'original') {
|
||||
response.container = `.${file.container}`;
|
||||
} else {
|
||||
response.container = `.${inputs.container}`;
|
||||
}
|
||||
|
||||
response.handbrakeMode = inputs.cli === 'handbrake';
|
||||
response.ffmpegMode = inputs.cli === 'ffmpeg';
|
||||
response.reQueueAfter = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue