1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-02-12 17:25:07 +00:00

Fix check for utf8_encode when manually upload subtitles

This commit is contained in:
josdion 2020-07-29 15:47:05 +03:00
parent 131c43fae5
commit 499581f0c6

View file

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