From 727ceb09108536a9be2a05d6d6948cc3944a3cad Mon Sep 17 00:00:00 2001 From: josdion Date: Mon, 1 Jun 2020 21:06:01 +0300 Subject: [PATCH] update "Show Only Desired Languages" description - update "Show Only Desired Languages" description - improve detection of movies without selected desired languages --- bazarr/api.py | 2 +- views/settingssubtitles.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/api.py b/bazarr/api.py index d0b890278..fb63b05a9 100644 --- a/bazarr/api.py +++ b/bazarr/api.py @@ -722,7 +722,7 @@ class Movies(Resource): if settings.general.getboolean('embedded_subs_show_desired'): desired_lang_list = [] - if item['languages'] and item['languages'] != 'None': + if isinstance(item['languages'], list): desired_lang_list = [x['code2'] for x in item['languages']] item['subtitles'] = [x for x in item['subtitles'] if x['code2'] in desired_lang_list or x['path']] diff --git a/views/settingssubtitles.html b/views/settingssubtitles.html index 34c50c9f0..0f01c4109 100644 --- a/views/settingssubtitles.html +++ b/views/settingssubtitles.html @@ -217,7 +217,7 @@ - +