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: