only update timeline if videos changed

This commit is contained in:
j 2011-10-02 20:03:22 +02:00
parent 63cb6039d3
commit 4442a9aaf3

View file

@ -833,7 +833,7 @@ class Item(models.Model):
folders = list(set([f.folder
for f in files.filter(is_video=True, instances__extra=False)]))
files = files.filter(folder__startswith=folders[0])
if files.filter(active=False).count() > 0:
if files.filter(active=False, is_video=True).count() > 0:
files.update(active=True)
self.rendered = False
self.save()