From a5a2122324b4f192e44011e9521a851f745ca48a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Louis=20V=C3=A9zina?=
<5130500+morpheus65535@users.noreply.github.com>
Date: Tue, 24 Apr 2018 10:55:21 -0400
Subject: [PATCH] Check if bazarr was restarted before trying to show progress
bar
---
views/series.tpl | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
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
|