From 499581f0c656ee29fc599507a8f104dc6e1f48ce Mon Sep 17 00:00:00 2001 From: josdion Date: Wed, 29 Jul 2020 15:47:05 +0300 Subject: [PATCH] Fix check for utf8_encode when manually upload subtitles --- bazarr/get_subtitle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index d9088f6cb..a96747056 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -577,7 +577,7 @@ def manual_upload_subtitle(path, language, forced, title, scene_name, media_type if os.path.exists(subtitle_path): os.remove(subtitle_path) - if settings.general.utf8_encode: + if settings.general.getboolean('utf8_encode'): try: os.remove(subtitle_path + ".tmp") except: