%import ast %from get_languages import * %from config import settings %single_language = settings.general.single_language
Loading...
% include('menu.tpl')
<% subs_languages = ast.literal_eval(str(details[7])) subs_languages_list = [] if subs_languages is not None: for subs_language in subs_languages: subs_languages_list.append(subs_language) end end %> %if subs_languages is not None: %end

%if details[13] == 'True': %else: %end {{details[0]}}

{{details[1]}}

{{details[6]}}
{{details[8]}}
% if details[12] is not None:
{{details[12]}}
% end

%for language in subs_languages_list:

{{language}}
%end

<% subtitles_files = ast.literal_eval(str(details[9])) subtitles_files.sort() if subtitles_files is not None: for subtitles_file in subtitles_files: %> <% end if len(subtitles_files) == 0: %> <% end end %>
Subtitles path Language
{{path_replace_movie(subtitles_file[1]) if subtitles_file[1] is not None else 'Video file subtitles track'}}
{{language_from_alpha2(subtitles_file[0])}}
%if subtitles_file[1] is not None: %end
No subtitles detected for this movie.
<% if details[11] is not None: missing_subs_languages = ast.literal_eval(details[11]) else: missing_subs_languages = [] end from get_subtitle import search_active if missing_subs_languages is not None: %>
Missing subtitles
<% for missing_subs_language in missing_subs_languages: if details[14] is not None and settings.general.adaptive_searching and missing_subs_language in details[14]: for lang in ast.literal_eval(details[14]): if missing_subs_language in lang: if search_active(lang[1]): %> {{language_from_alpha2(str(missing_subs_language))}} %else: {{language_from_alpha2(str(missing_subs_language))}} <% end end end else: %> {{language_from_alpha2(str(missing_subs_language))}} <% end end end %>
% include('footer.tpl')