avalonmediasystem / avalon

Avalon Media System – Samvera Application
http://www.avalonmediasystem.org/
Apache License 2.0
93 stars 51 forks source link

Improve handling of improperly formatted time cues in Transcript Parser #5893

Closed masaball closed 1 week ago

masaball commented 1 week ago

Related issue: #5886

Malformed time cues would cause the transcript search to bomb because the regex to separate timed text cues would fail to find a match. We are loosening the regex to match time cues of the form h:mm:ss.ttt and also providing a failure path so that if the timed text cannot be separated properly, the search will still return matches. It will just be the entire cue instead of the text with a time fragment anchored target.