diff --git a/bazarr/main.py b/bazarr/main.py index f022083e3..f5a1e38de 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -608,7 +608,7 @@ def edit_series(no): lang = 'None' single_language = settings.general.getboolean('single_language') - if single_language is True: + if single_language: if str(lang) == "['None']": lang = 'None' else: @@ -805,8 +805,15 @@ def edit_movie(no): else: lang = 'None' - if str(lang) == "['']": - lang = '[]' + single_language = settings.general.getboolean('single_language') + if single_language: + 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/movie.tpl b/views/movie.tpl index 6444c3d1b..f43ef0a0b 100644 --- a/views/movie.tpl +++ b/views/movie.tpl @@ -249,6 +249,9 @@
+ %if single_language: + + %end %for language in languages: %end diff --git a/views/series.tpl b/views/series.tpl index 51a570970..39d0db749 100644 --- a/views/series.tpl +++ b/views/series.tpl @@ -94,7 +94,7 @@ %end %end - {{!"" if row[4] == None else row[4]}} + {{!"" if row[4] is None else row[4]}} %total_subs = 0 %missing_subs = 0 @@ -199,7 +199,7 @@