From 602370be269124cbe41802592479142a826e2215 Mon Sep 17 00:00:00 2001 From: ZGaetano Date: Tue, 26 May 2026 09:41:33 -0400 Subject: [PATCH] fix(worker): use bracket notation for @_ XML attribute property access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit track?.@_currentExplodedTrackIndex is invalid JS syntax — @ is not a valid identifier character. Replaced with track?.['@_currentExplodedTrackIndex'] so the worker process no longer crashes on startup. --- services/worker/src/workers/conform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/worker/src/workers/conform.js b/services/worker/src/workers/conform.js index 2713ad1..f30a873 100644 --- a/services/worker/src/workers/conform.js +++ b/services/worker/src/workers/conform.js @@ -29,7 +29,7 @@ function parseFcpXml(xmlContent) { const tracks = Array.isArray(videoTracks) ? videoTracks : [videoTracks]; for (const track of tracks) { - const trackNum = parseInt(track?.@_currentExplodedTrackIndex || 0, 10); + const trackNum = parseInt(track?.['@_currentExplodedTrackIndex'] || 0, 10); const trackItems = track?.clipitem || []; const items = Array.isArray(trackItems) ? trackItems : [trackItems];