From e97a1b8e2492da53d021261301c9b9c2a86ea135 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 27 Oct 2011 11:52:07 +0200 Subject: [PATCH] really fix default clips --- pandora/item/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 49612940..0a168726 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1084,7 +1084,9 @@ class Item(models.Model): annotation.save() #otherwise add empty 5 seconds annotation every minute if not subtitles_added: - for i in range(int(math.ceil(offset)), int(offset + f.duration) - 5, 60): + for i in range(int (offset / 60) * 60 + 60, + int(offset + f.duration) - 5, + 60): annotation = Annotation( item=self, layer=layer,