Skip to content

[BUG FIX] [MER-6025] Restore video subtitle attachment - #306

Merged
rgachuhi merged 1 commit into
masterfrom
MER-6025-fix-video-subtitle-attchment
Oct 9, 2026
Merged

rgachuhi merged 1 commit into
masterfrom
MER-6025-fix-video-subtitle-attchment

Conversation

@andersweinstein

@andersweinstein andersweinstein commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • restore conversion of legacy video subtitle tracks into Torus captions metadata
  • preserve subtitle label, language code, and translated VTT source URL
  • add a regression test for legacy video subtitle conversion

Regression source

Subtitle migration was originally added in #287 (da03c87) for MER-4959. That implementation depended on standardContentManipulations renaming video track elements with kind="subtitles" to captions and srclang to language_code before the XML-to-JSON converter collected video captions.

Those two normalization statements were accidentally removed by #293 (cbc6e42), the unrelated MER-5288 Jmol enhancement. The media scan continued to recognize video track sources, so VTT files were still uploaded and appeared in the media manifest. However, the XML-to-JSON converter only collects captions children and then replaces the video's children, causing the unrenamed track and its association to be discarded.

This PR restores the removed normalization behavior.

Verification

  • AWS_S3_PORT=9000 npm test -- --runInBand (151 tests passed)
  • npm run lint (passes with 3 pre-existing warnings)
  • npm run prettier
  • git diff --check

@rgachuhi
rgachuhi merged commit e502cab into master Oct 9, 2026
2 checks passed
@rgachuhi
rgachuhi deleted the MER-6025-fix-video-subtitle-attchment branch October 9, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants