Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/bazarr/commit/4056796eb18162a78e9dca3e0e6adf0fcfc66e4e
You should set ROOT_URL correctly, otherwise the web may not work correctly.
- Remove is_binary as it test only the first 1024 bytes and the encoding of teh detected file must be above 0.9 to recognize the file as a text. The new implementation assumes that if the file is binary, then detection of character encoding will be with confidence lower than 80% or text.decode() will raise an exception.
- skip detection of subtitle files larger than 5M