@ -222,7 +222,7 @@
<td>
%if episode['subtitles'] is not None:
% actual_languages = ast.literal_eval(episode['subtitles'])
% actual_languages = sorted(actual_languages, key=lambda x: (x is None, x))
% actual_languages.sort(key=lambda x: x[0])
%else:
% actual_languages = '[]'
%end
@ -171,7 +171,7 @@
<tbody>
<%
subtitles_files = ast.literal_eval(str(details['subtitles']))
subtitles_files = sorted(subtitles_files, key=lambda x: (x is None, x))
subtitles_files.sort(key=lambda x: x[0])
if subtitles_files is not None:
for subtitles_file in subtitles_files:
if subtitles_file[0].endswith(':forced'):