From 43d54823e39b23e9058db0048f8609515bca35f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Thu, 14 Jun 2018 12:46:52 -0400 Subject: [PATCH] Fix for #82 --- bazarr.py | 11 +++++++++-- views/episodes.tpl | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/bazarr.py b/bazarr.py index 0229c2574..dafa5de21 100644 --- a/bazarr.py +++ b/bazarr.py @@ -257,8 +257,15 @@ def edit_series(no): else: lang = 'None' - if str(lang) == "['']": - lang = '[]' + single_language = get_general_settings()[7] + if single_language == 'True': + if str(lang) == "['None']": + lang = 'None' + else: + lang = str(lang) + else: + if str(lang) == "['']": + lang = '[]' hi = request.forms.get('hearing_impaired') diff --git a/views/episodes.tpl b/views/episodes.tpl index a6dadd1e5..2733caf2d 100644 --- a/views/episodes.tpl +++ b/views/episodes.tpl @@ -241,6 +241,9 @@