Closed lunika closed 2 months ago
When reading a subtitle content file uploaded, sometimes it starts with a Byte Order Mark and the srt reader is failing to detect the content as a srt one. We have to remove it before using the detect_format from the pycaption library.
This pull request was deployed and Sentry observed the following issues:
marsha.core.tasks.timed_text_track.convert_time...
Did you find this useful? React with a 👍 or 👎
Purpose
When reading a subtitle content file uploaded, sometimes it starts with a Byte Order Mark and the srt reader is failing to detect the content as a srt one. We have to remove it before using the detect_format from the pycaption library.
Proposal