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

pull/697/head
Louis Vézina 5 years ago
parent 78c3a94677
commit 4260d8ddfe

@ -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)

Loading…
Cancel
Save