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:
parent
dbb5b85953
commit
9b48b59860
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue