From c678c0bce0dd75c7674502369730011d8cf480f0 Mon Sep 17 00:00:00 2001 From: Jan Starzak Date: Wed, 12 Apr 2023 12:00:29 +0200 Subject: [PATCH] fix(Loudness): match only last scan result output --- .../workers/windowsWorker/expectationHandlers/lib/scan.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/packages/worker/src/worker/workers/windowsWorker/expectationHandlers/lib/scan.ts b/shared/packages/worker/src/worker/workers/windowsWorker/expectationHandlers/lib/scan.ts index b10de014..c118b72e 100644 --- a/shared/packages/worker/src/worker/workers/windowsWorker/expectationHandlers/lib/scan.ts +++ b/shared/packages/worker/src/worker/workers/windowsWorker/expectationHandlers/lib/scan.ts @@ -507,7 +507,7 @@ function scanLoudnessStream( const LayoutRegex = /Output #0, null[\S\s]+Stream #0:0: Audio: [\w]+, [\d]+ Hz, (?\w+),/ const LoudnessRegex = - /Integrated loudness:\s+I:\s+(?[\d-.,]+)\s+LUFS\s+Threshold:\s+(?[\d-.,]+)\s+LUFS\s+Loudness range:\s+LRA:\s+(?[\d-.,]+)\s+LU\s+Threshold:\s+(?[\d-.,]+)\s+LUFS\s+LRA low:\s+(?[\d-.,]+)\s+LUFS\s+LRA high:\s+(?[\d-.,]+)\s+LUFS/i + /Integrated loudness:\s+I:\s+(?[\d-.,]+)\s+LUFS\s+Threshold:\s+(?[\d-.,]+)\s+LUFS\s+Loudness range:\s+LRA:\s+(?[\d-.,]+)\s+LU\s+Threshold:\s+(?[\d-.,]+)\s+LUFS\s+LRA low:\s+(?[\d-.,]+)\s+LUFS\s+LRA high:\s+(?[\d-.,]+)\s+LUFS\s*$/i const loudnessRes = LoudnessRegex.exec(stderr) const layoutRes = LayoutRegex.exec(stderr)