From 4260d8ddfe65bb02b6f12a97c023c81d15302b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 4 Dec 2019 19:43:38 -0500 Subject: [PATCH] Fix for unicode error while guessing external subtitles without language code. --- bazarr/list_subtitles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr/list_subtitles.py b/bazarr/list_subtitles.py index cc08a37c2..301afe005 100644 --- a/bazarr/list_subtitles.py +++ b/bazarr/list_subtitles.py @@ -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)