From 084fde7b67c8fa91b356f74c60936aefd7636192 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 8 Sep 2012 14:56:40 +0200 Subject: [PATCH] save again --- pandora/archive/tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora/archive/tasks.py b/pandora/archive/tasks.py index 80cb9f74..c378ae15 100644 --- a/pandora/archive/tasks.py +++ b/pandora/archive/tasks.py @@ -94,6 +94,7 @@ def update_files(user, volume, files): @task(queue="encoding") def process_stream(fileId): file = models.File.objects.get(id=fileId) + streams = file.streams.filter(source=None) if streams.count() > 0: stream = streams[0] @@ -102,6 +103,8 @@ def process_stream(fileId): file.item.update_selected() if not file.item.rendered: file.item.update_timeline() + if file.item.rendered: + file.item.save() return True @task(queue="encoding")