From cf6374e8a69d687f2661dff210b1f6a6164bdc2f Mon Sep 17 00:00:00 2001 From: j Date: Sat, 15 Jul 2023 12:41:41 +0530 Subject: [PATCH] fix annotation clips --- pandora/mobile/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/mobile/views.py b/pandora/mobile/views.py index e3564913..927c22ea 100644 --- a/pandora/mobile/views.py +++ b/pandora/mobile/views.py @@ -65,7 +65,8 @@ def index(request, fragment): clips = edit.get_clips(request.user) clip = clips.first() if clip: - preview = '/%s/%sp%0.03f.jpg' % (clip.item.public_id, resolution, float(clip.start)) + start = clip.json()['in'] + preview = '/%s/%sp%0.03f.jpg' % (clip.item.public_id, resolution, float(start)) context['preview'] = request.build_absolute_uri(preview) else: type = 'item'