%import ast %from get_languages import * %from get_general_settings import * %single_language = get_general_settings()[7]
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 %>

{{details[0]}}

{{details[1]}}

{{details[6]}}
{{details[8]}}
{{number}} files

%for language in subs_languages_list:

{{language}}
%end

%if len(seasons) == 0:

No episode files available for this series or Bazarr is still synchronizing with Sonarr. Please come back later.

%else: %for season in seasons:
%missing_subs = len([i for i in season if i[6] != "[]"]) %total_subs = len(season) %subs_label = '' %if subs_languages is not None: % subs_label = '
' + str(total_subs - missing_subs) + ' / ' + str(total_subs) + '
' %end

Season {{season[0][2]}}{{!subs_label}}

Show/Hide Episodes

%for episode in season: %end
Episode Title Existing subtitles Missing subtitles
%if episode[9] == "True": %else: %end {{episode[3]}} {{episode[0]}} %if episode[4] is not None: % actual_languages = ast.literal_eval(episode[4]) % actual_languages.sort() %else: % actual_languages = '[]' %end %try: %for language in actual_languages: %if language[1] is not None: {{language[0]}} %else:
{{language[0]}}
%end %end %except: %pass %end
%try: %if episode[6] is not None: % missing_languages = ast.literal_eval(episode[6]) % missing_languages.sort() %else: % missing_languages = None %end %if missing_languages is not None: %for language in missing_languages: {{language}} %end %end %except: %pass %end
%end %end
% include('footer.tpl')