Explorar el Código

Fix bad lookup of covers in long play template

Colin Powell hace 2 años
padre
commit
1c6f28bae3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      vrobbler/templates/scrobbles/long_plays_in_progress.html

+ 1 - 1
vrobbler/templates/scrobbles/long_plays_in_progress.html

@@ -24,7 +24,7 @@
             <dt><a href="{{media.get_absolute_url}}">{{media.title}}</a></dt>
             {% if media.hltb_cover %}
             <dd><a href="{{media.get_absolute_url}}"><img src="{{media.hltb_cover.url}}" width=200 height=200 /></a></dd>
-            {% else %}
+            {% elif media.cover %}
             <dd><a href="{{media.get_absolute_url}}"><img src="{{media.cover.url}}" style="width: 200px; height: 200px; object-fit:cover; " /></a></dd>
             {% endif %}
             <dd>