openfun / marsha

:clapper: An opensource LTI Learning Content Management System (LCMS)
MIT License
106 stars 24 forks source link

🐛(back) manage subtitles content starting with a BOM #2604

Closed lunika closed 2 months ago

lunika commented 2 months ago

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

sentry-io[bot] commented 2 months ago

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

Did you find this useful? React with a 👍 or 👎