mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-11 01:23:38 +08:00
Fix for episodes and movies subtitles sorting when detected language is None.
This commit is contained in:
parent
8ad2e46dd3
commit
e0aac7de4a
2 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@
|
|||
<td>
|
||||
%if episode['subtitles'] is not None:
|
||||
% actual_languages = ast.literal_eval(episode['subtitles'])
|
||||
% actual_languages.sort()
|
||||
% actual_languages = sorted(actual_languages, key=lambda x: (x is None, x))
|
||||
%else:
|
||||
% actual_languages = '[]'
|
||||
%end
|
||||
|
|
|
@ -171,7 +171,7 @@
|
|||
<tbody>
|
||||
<%
|
||||
subtitles_files = ast.literal_eval(str(details['subtitles']))
|
||||
subtitles_files.sort()
|
||||
subtitles_files = sorted(subtitles_files, key=lambda x: (x is None, x))
|
||||
if subtitles_files is not None:
|
||||
for subtitles_file in subtitles_files:
|
||||
if subtitles_file[0].endswith(':forced'):
|
||||
|
|
Loading…
Reference in a new issue