From 4442a9aaf3d94c5e5b8a491e8b7c461db9dc49de Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 2 Oct 2011 20:03:22 +0200 Subject: [PATCH] only update timeline if videos changed --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index d480ab9d..9f8d1bd0 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -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()