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

{{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 %>

{{details['overview']}}

{{details['audio_language']}}
{{details['path']}}
{{number}} files
%for language in subs_languages_list:
{{language}}
%end
Hearing-impaired: {{details['hearing_impaired']}}
Forced: {{details['forced']}}
%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['missing_subtitles'] != "[]"]) %total_subs = len(season) %subs_label = '' %if subs_languages is not None: % subs_label = '
' + str(total_subs - missing_subs) + ' / ' + str(total_subs) + '
' %end % season_number = None % for season_temp in season: % season_number = season_temp['season'] % break % end

Season {{season_number}}{{!subs_label}}

Show/Hide Episodes

%for episode in season: %end
Episode Title Existing
Subtitles
Missing
Subtitles
Manual
Search
Manual
Upload
%if episode['monitored'] == 'True': %else: %end {{episode['episode']}} % if episode['scene_name'] is not None: % end {{episode['title']}} %if episode['subtitles'] is not None: % actual_languages = ast.literal_eval(episode['subtitles']) % actual_languages.sort(key=lambda x: x[0]) %else: % actual_languages = '[]' %end %try: %for language in actual_languages: %if language[0].endswith(':forced'): % forced = True %else: % forced = False %end %if language[1] is not None: {{!'' if forced else ''}}{{language[0].split(':')[0]}} %else:
{{language[0]}}
%end %end %except: %pass %end
%try: <% if episode['missing_subtitles'] is not None: missing_languages = ast.literal_eval(episode['missing_subtitles']) missing_languages.sort() end if missing_languages is not None: from get_subtitle import search_active for language in missing_languages: if episode['failedAttempts'] is not None and settings.general.getboolean('adaptive_searching') and language in episode['failedAttempts']: for lang in ast.literal_eval(episode['failedAttempts']): if language in lang: if search_active(lang[1]): %> 1 else "False"}}" data-sonarrSeriesId="{{episode['sonarrSeriesId']}}" data-sonarrEpisodeId="{{episode['sonarrEpisodeId']}}" class="get_subtitle ui tiny label"> {{language}} %else: 1 else "False"}}" data-sonarrSeriesId="{{episode['sonarrSeriesId']}}" data-sonarrEpisodeId="{{episode['sonarrEpisodeId']}}" class="get_subtitle ui tiny label"> {{language}} %end %end %end %else: 1 else "False"}}" data-sonarrSeriesId="{{episode['sonarrSeriesId']}}" data-sonarrEpisodeId="{{episode['sonarrEpisodeId']}}" class="get_subtitle ui tiny label"> {{language}} %end %end %end %except: %pass %end %if subs_languages is not None: %end %if subs_languages is not None: %end
%end %end
% include('footer.tpl')