From 2f5f9bad3589f027f74c268fc96b947641a8ac38 Mon Sep 17 00:00:00 2001 From: Halali Date: Sat, 10 Nov 2018 14:36:12 +0100 Subject: [PATCH] Fix for episodes template --- bazarr/main.py | 2 +- views/episodes.tpl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index 736fc7124..8c33b04c9 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -693,7 +693,7 @@ def episodes(no): series_details = c.execute("SELECT title, overview, poster, fanart, hearing_impaired, tvdbid, audio_language, languages, path_substitution(path) FROM table_shows WHERE sonarrSeriesId LIKE ?", (str(no),)).fetchone() tvdbid = series_details[5] - episodes = c.execute("SELECT title, path_substitution(path), season, episode, subtitles, sonarrSeriesId, missing_subtitles, sonarrEpisodeId, scene_name, monitored FROM table_episodes WHERE sonarrSeriesId LIKE ? ORDER BY episode ASC", (str(no),)).fetchall() + episodes = c.execute("SELECT title, path_substitution(path), season, episode, subtitles, sonarrSeriesId, missing_subtitles, sonarrEpisodeId, scene_name, monitored, failedAttempts FROM table_episodes WHERE sonarrSeriesId LIKE ? ORDER BY episode ASC", (str(no),)).fetchall() number = len(episodes) languages = c.execute("SELECT code2, name FROM table_settings_languages WHERE enabled = 1").fetchall() c.close() diff --git a/views/episodes.tpl b/views/episodes.tpl index a349340e8..dab968502 100644 --- a/views/episodes.tpl +++ b/views/episodes.tpl @@ -218,8 +218,6 @@ 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: from get_subtitle import search_active @@ -233,10 +231,12 @@ {{language}} + %else: {{language}} + %end %end %end @@ -244,8 +244,8 @@ {{language}} + %end - %end %end %except: