1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 01:27:07 +00:00

no log: added failsafe for compare str to None while trying to sort.

This commit is contained in:
morpheus65535 2022-01-15 17:20:59 -05:00
parent dbb5b85953
commit 9b48b59860

View file

@ -199,7 +199,8 @@ def postprocessMovie(item):
desired_lang_list = get_desired_languages(item['profileId'])
item['subtitles'] = [x for x in item['subtitles'] if x['code2'] in desired_lang_list or x['path']]
item['subtitles'] = sorted(item['subtitles'], key=itemgetter('name', 'forced'))
if item['subtitles']:
item['subtitles'] = sorted(item['subtitles'], key=itemgetter('name', 'forced'))
# Parse missing subtitles
if 'missing_subtitles' in item: