1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 01:27:07 +00:00

Fix for unicode error while guessing external subtitles without language code.

This commit is contained in:
Louis Vézina 2019-12-04 19:43:38 -05:00
parent 78c3a94677
commit 4260d8ddfe

View file

@ -366,7 +366,7 @@ def guess_external_subtitles(dest_folder, subtitles):
subtitle_path)
continue
detected_language = None
with open(subtitle_path, 'r') as f:
with open(subtitle_path, 'r', errors='ignore') as f:
text = f.read()
try:
encoding = UnicodeDammit(text)