mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 10:15:54 -07:00
Add other args check
This commit is contained in:
parent
89fe92a8cc
commit
fe8864fcc0
1 changed files with 3 additions and 1 deletions
|
|
@ -191,7 +191,9 @@ const getEncoder = async ({
|
||||||
inputs,
|
inputs,
|
||||||
otherArguments,
|
otherArguments,
|
||||||
}) => {
|
}) => {
|
||||||
if (otherArguments.workerType.includes('gpu')
|
if (
|
||||||
|
otherArguments.workerType
|
||||||
|
&& otherArguments.workerType.includes('gpu')
|
||||||
&& inputs.try_use_gpu && (inputs.target_codec === 'hevc' || inputs.target_codec === 'h264')) {
|
&& inputs.try_use_gpu && (inputs.target_codec === 'hevc' || inputs.target_codec === 'h264')) {
|
||||||
const gpuEncoders = [
|
const gpuEncoders = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue