Explorar o código

[videos] Fix lookup for ids for videos

Colin Powell hai 19 horas
pai
achega
9c2355978e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      vrobbler/templates/videos/video_detail.html

+ 2 - 2
vrobbler/templates/videos/video_detail.html

@@ -66,12 +66,12 @@ dd {
         {% if object.overview %}<p><em>{{object.overview}}</em></p>{% endif %}
         {% if object.plot%}<p>{{object.plot|safe|linebreaks|truncatewords:160}}</p>{% endif %}
         <hr />
-        {% if object.imdb_link %}
+        {% if object.imdb_id %}
         <p style="float:right;">
             <a href="{{object.imdb_link}}"><img src="{% static "images/imdb_logo.png" %}" width=35></a>
         </p>
         {% endif %}
-        {% if object.youtube_link %}
+        {% if object.youtube_id %}
         <p style="float:right;">
             <a href="{{object.youtube_link}}"><img src="{% static "images/youtube_logo.png" %}" width=35></a>
         </p>