From ed886cd2acf4591903801c5fb4a27ae4ebc06741 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 29 Oct 2011 16:13:02 +0200 Subject: [PATCH] start default clips at 0 --- pandora/item/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index d31c21e75..1b79a700e 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1085,7 +1085,8 @@ class Item(models.Model): annotation.save() #otherwise add empty 5 seconds annotation every minute if not subtitles_added: - for i in range(int (offset / 60) * 60 + 60, + start = offset and int (offset / 60) * 60 + 60 or 0 + for i in range(start, int(offset + f.duration) - 5, 60): annotation = Annotation(