mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 09:37:25 +00:00
Fix for unicode error while guessing external subtitles without language code.
This commit is contained in:
parent
78c3a94677
commit
4260d8ddfe
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ def guess_external_subtitles(dest_folder, subtitles):
|
||||||
subtitle_path)
|
subtitle_path)
|
||||||
continue
|
continue
|
||||||
detected_language = None
|
detected_language = None
|
||||||
with open(subtitle_path, 'r') as f:
|
with open(subtitle_path, 'r', errors='ignore') as f:
|
||||||
text = f.read()
|
text = f.read()
|
||||||
try:
|
try:
|
||||||
encoding = UnicodeDammit(text)
|
encoding = UnicodeDammit(text)
|
||||||
|
|
Loading…
Reference in a new issue