Proper handling for non existing covers in calibre database

This commit is contained in:
OzzieIsaacs
2017-01-21 17:04:36 +01:00
parent a40322468a
commit 93b020b77c
3 changed files with 16 additions and 8 deletions
+3 -1
View File
@@ -4,8 +4,10 @@
<div class="row">
<div class="col-sm-3 col-lg-3 col-xs-12">
<div class="cover">
{% if entry.has_cover is defined %}
{% if entry.has_cover %}
<img src="{{ url_for('get_cover', cover_path=entry.path.replace('\\','/')) }}" />
{% else %}
<img src="{{ url_for('static', filename='generic_cover.jpg') }}" />
{% endif %}
</div>
</div>