From 57a22c4a769385d0430cdd7900a65cfb8d526ec7 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Sun, 29 Oct 2023 20:41:43 +0100 Subject: [PATCH] fix bug where runAll() doesn't work for embed based returns --- src/main/runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/runner.ts b/src/main/runner.ts index 866ffb9..700dbe4 100644 --- a/src/main/runner.ts +++ b/src/main/runner.ts @@ -80,7 +80,7 @@ export async function runAllProviders(list: ProviderList, ops: ProviderRunnerOpt ...contextBase, media: ops.media, }); - if (!isValidStream(output?.stream)) { + if (output?.stream && !isValidStream(output?.stream)) { throw new NotFoundError('stream is incomplete'); } if (output?.stream && !flagsAllowedInFeatures(ops.features, output.stream.flags)) {