diff --git a/views/series.tpl b/views/series.tpl
index 4f9e183ab..c14c6b834 100644
--- a/views/series.tpl
+++ b/views/series.tpl
@@ -89,15 +89,19 @@
{{!"" if row[4] == None else row[4]}} |
- %for total_subtitles in total_subtitles_list:
- % if total_subtitles[0] == row[5]:
- % total_subs = total_subtitles[1]
+ %if not total_subtitles_list:
+ % pass
+ %else:
+ % for total_subtitles in total_subtitles_list:
+ % if total_subtitles[0] == row[5]:
+ % total_subs = total_subtitles[1]
+ % end
% end
- %end
- %missing_subs = 0
- %for missing_subtitles in missing_subtitles_list:
- % if missing_subtitles[0] == row[5]:
- % missing_subs = missing_subtitles[1]
+ % missing_subs = 0
+ % for missing_subtitles in missing_subtitles_list:
+ % if missing_subtitles[0] == row[5]:
+ % missing_subs = missing_subtitles[1]
+ % end
% end
%end
|