From f42cbfe31fd008d344dcaac07ac31f1295d3af45 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 16 Sep 2013 13:56:55 +0200 Subject: [PATCH] video only fir now in media API --- teleforma/views/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/views/core.py b/teleforma/views/core.py index 838a8008..33940f06 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -298,7 +298,7 @@ class CourseView(CourseAccessMixin, DetailView): course = Course.objects.get(code=id) media_list = [] for media in course.media.all(): - if media.item.file and media.conference: + if media.item.file and media.conference and 'video' in media.mime_type: urls = [ {'url': settings.MEDIA_URL + unicode(media.item.file), 'mime_type': media.mime_type} ] for transcoded in media.item.transcoded.all(): urls.append({'url':settings.MEDIA_URL + unicode(transcoded.file), 'mime_type': media.mime_type}) -- 2.39.5