fix(worker): use bracket notation for @_ XML attribute property access
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.
This commit is contained in:
parent
3ebe5d6639
commit
602370be26
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue