fix annotation clips

This commit is contained in:
j 2023-07-15 12:41:41 +05:30
parent d4e89db4c1
commit cf6374e8a6

View file

@ -65,7 +65,8 @@ def index(request, fragment):
clips = edit.get_clips(request.user) clips = edit.get_clips(request.user)
clip = clips.first() clip = clips.first()
if clip: 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) context['preview'] = request.build_absolute_uri(preview)
else: else:
type = 'item' type = 'item'