From c06f94fb24a8fed7bdd3d00cb5993692dede9cac Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 21 Jan 2012 16:21:04 +0530 Subject: [PATCH] return default frame --- pandora/item/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index 63c887f66..a4bee1f89 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -629,7 +629,8 @@ def frame(request, id, size, position=None): frame = item.frame(position, int(size)) if not frame: - raise Http404 + frame = os.path.join(settings.STATIC_ROOT, 'jpg/list256.jpg') + #raise Http404 return HttpFileResponse(frame, content_type='image/jpeg') def poster_frame(request, id, position):