aboutsummaryrefslogtreecommitdiffhomepage
path: root/views
diff options
context:
space:
mode:
authorLouis Vézina <[email protected]>2018-04-24 10:55:21 -0400
committerLouis Vézina <[email protected]>2018-04-24 10:55:21 -0400
commita5a2122324b4f192e44011e9521a851f745ca48a (patch)
treec053e047a509eee53ed184b3875aaa41d8f59288 /views
parent8cbb22d406d61a3d9fb72f1ec777b90ccb4c7ab7 (diff)
downloadbazarr-a5a2122324b4f192e44011e9521a851f745ca48a.tar.gz
bazarr-a5a2122324b4f192e44011e9521a851f745ca48a.zip
Check if bazarr was restarted before trying to show progress bar
Diffstat (limited to 'views')
-rw-r--r--views/series.tpl20
1 files 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 @@
</td>
<td>{{!"" if row[4] == None else row[4]}}</td>
<td>
- %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
<div class="ui progress" data-value="{{total_subs - missing_subs}}" data-total="{{total_subs}}">