update "Show Only Desired Languages" description

- update "Show Only Desired Languages" description
- improve detection of movies without selected desired languages
pull/1038/head
josdion 5 years ago
parent 9b7e160784
commit 727ceb0910

@ -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']]

@ -217,7 +217,7 @@
<input type="checkbox" class="custom-control-input" id="settings-general-embedded_subs_show_desired" name="settings-general-embedded_subs_show_desired">
<span class="custom-control-label" for="settings-general-embedded_subs_show_desired"></span>
</label>
<label>Hide subtitles for languages that are not currently enabled.</label>
<label>Hide embedded subtitles for languages that are not currently desired.</label>
</div>
</div>
</div>

Loading…
Cancel
Save