From 205304a66fad5b9a95c3ab16527124f3ac20211e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 20 Aug 2011 10:45:54 +0200 Subject: [PATCH] processing --- pandora/archive/tasks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandora/archive/tasks.py b/pandora/archive/tasks.py index 67259873e..0b621c620 100644 --- a/pandora/archive/tasks.py +++ b/pandora/archive/tasks.py @@ -91,10 +91,11 @@ def update_files(user, volume, files): @task(queue="encoding") def process_stream(fileId): - file = models.Stream.objects.get(id=fileId) + file = models.File.objects.get(id=fileId) streams = file.streams.filter(source=None) - if streams.count() >0: + if streams.count() > 0: stream = streams[0] stream.make_timeline() stream.extract_derivatives() + file.item.update_timeline() return True