diff --git a/scripts/commands/playlist/test.ts b/scripts/commands/playlist/test.ts index 5fae0920ac..590c2e7111 100644 --- a/scripts/commands/playlist/test.ts +++ b/scripts/commands/playlist/test.ts @@ -5,6 +5,7 @@ import { Stream } from '../../models' import { program } from 'commander' import { eachLimit } from 'async-es' import chalk from 'chalk' +import os from 'node:os' import type { DataLoaderData } from '../../types/dataLoader' import type { DataProcessorData } from '../../types/dataProcessor' @@ -24,7 +25,7 @@ program '-p, --parallel ', 'Batch size of streams to test concurrently', (value: string) => parseInt(value), - 10 + os.cpus().length ) .option('-x, --proxy ', 'Use the specified proxy') .parse(process.argv)