mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 23:48:15 -07:00
Add checkFfmpegCommandInit(() to ffmpeg command plugins
This commit is contained in:
parent
0ba6ceb182
commit
69afa93e70
15 changed files with 45 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ import {
|
|||
IpluginOutputArgs,
|
||||
} from '../../../../FlowHelpers/1.0.0/interfaces/interfaces';
|
||||
import { getFfType } from '../../../../FlowHelpers/1.0.0/fileUtils';
|
||||
import { checkFfmpegCommandInit } from '../../../../FlowHelpers/1.0.0/interfaces/flowUtils';
|
||||
|
||||
/* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */
|
||||
const details = (): IpluginDetails => ({
|
||||
|
|
@ -120,6 +121,8 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
|
|||
// eslint-disable-next-line @typescript-eslint/no-unused-vars,no-param-reassign
|
||||
args.inputs = lib.loadDefaultValues(args.inputs, details);
|
||||
|
||||
checkFfmpegCommandInit(args);
|
||||
|
||||
const { useInputBitrate } = args.inputs;
|
||||
const targetBitratePercent = String(args.inputs.targetBitratePercent);
|
||||
const fallbackBitrate = String(args.inputs.fallbackBitrate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue