save again

This commit is contained in:
j 2012-09-08 14:56:40 +02:00
parent e3d0893a00
commit 084fde7b67

View file

@ -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")