%import ast %from get_languages import * %from config import settings %from helper import path_replace_movie %single_language = settings.general.getboolean('single_language')
Loading...
% include('menu.tpl')

%if details.monitored == 'True': %else: %end {{details.title}}

<% subs_languages = ast.literal_eval(str(details.languages)) 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
{{details.overview}}
{{details.audio_language}}
{{details.path}}
% if details.scene_name is not None:
{{details.scene_name}}
% end
%for language in subs_languages_list:
{{language}}
%end
Hearing-impaired: {{details.hearing_impaired}}
Forced: {{details.forced}}
<% subtitles_files = ast.literal_eval(str(details.subtitles)) subtitles_files.sort() if subtitles_files is not None: for subtitles_file in subtitles_files: if subtitles_file[0].endswith(':forced'): forced = True else: forced = False end %> <% end if len(subtitles_files) == 0: %> <% end end %>
Subtitles Path Language(s)
{{path_replace_movie(subtitles_file[1]) if subtitles_file[1] is not None else 'Video File Subtitles Track'}}
{{language_from_alpha2(subtitles_file[0].split(':')[0])}}{{' forced' if forced else ''}}
%if subtitles_file[1] is not None: %end
No Subtitles Detected For This Movie.
<% if details.missing_subtitles is not None: missing_subs_languages = ast.literal_eval(details.missing_subtitles) 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 len(missing_subs_language) > 2: forced = missing_subs_language[2] forced_bool = True else: forced = False forced_bool = False end if details.failed_attempts is not None and settings.general.getboolean('adaptive_searching') and missing_subs_language in details.failed_attempts: for lang in ast.literal_eval(details.failed_attempts): if missing_subs_language in lang: if search_active(lang[1]): %> {{language_from_alpha2(str(missing_subs_language.split(':')[0]))}}{{' forced' if forced else ''}} %else: {{language_from_alpha2(str(missing_subs_language.split(':')[0]))}}{{' forced' if forced else ''}} <% end end end else: %> {{language_from_alpha2(str(missing_subs_language.split(':')[0]))}}{{' forced' if forced else ''}} <% end end end %>
% include('footer.tpl')