start default clips at 0

This commit is contained in:
j 2011-10-29 16:13:02 +02:00
parent fd39f122ad
commit ed886cd2ac

View file

@ -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(