really fix default clips

This commit is contained in:
j 2011-10-27 11:52:07 +02:00
parent 671b730db5
commit e97a1b8e24

View file

@ -1084,7 +1084,9 @@ class Item(models.Model):
annotation.save() annotation.save()
#otherwise add empty 5 seconds annotation every minute #otherwise add empty 5 seconds annotation every minute
if not subtitles_added: 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( annotation = Annotation(
item=self, item=self,
layer=layer, layer=layer,