mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 02:35:54 -07:00
Reuse newContainer var
This commit is contained in:
parent
0842b351d5
commit
202f255f4f
2 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ var plugin = function (args) {
|
||||||
args.inputs = lib.loadDefaultValues(args.inputs, details);
|
args.inputs = lib.loadDefaultValues(args.inputs, details);
|
||||||
var newContainer = String(args.inputs.container);
|
var newContainer = String(args.inputs.container);
|
||||||
var forceConform = args.inputs.forceConform;
|
var forceConform = args.inputs.forceConform;
|
||||||
if ((0, fileUtils_1.getContainer)(args.inputFileObj._id) !== args.inputs.container) {
|
if ((0, fileUtils_1.getContainer)(args.inputFileObj._id) !== newContainer) {
|
||||||
args.variables.ffmpegCommand.container = newContainer;
|
args.variables.ffmpegCommand.container = newContainer;
|
||||||
args.variables.ffmpegCommand.shouldProcess = true;
|
args.variables.ffmpegCommand.shouldProcess = true;
|
||||||
if (forceConform === true) {
|
if (forceConform === true) {
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
|
||||||
const newContainer = String(args.inputs.container);
|
const newContainer = String(args.inputs.container);
|
||||||
const { forceConform } = args.inputs;
|
const { forceConform } = args.inputs;
|
||||||
|
|
||||||
if (getContainer(args.inputFileObj._id) !== args.inputs.container) {
|
if (getContainer(args.inputFileObj._id) !== newContainer) {
|
||||||
args.variables.ffmpegCommand.container = newContainer;
|
args.variables.ffmpegCommand.container = newContainer;
|
||||||
args.variables.ffmpegCommand.shouldProcess = true;
|
args.variables.ffmpegCommand.shouldProcess = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue