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") @task(queue="encoding")
def process_stream(fileId): def process_stream(fileId):
file = models.File.objects.get(id=fileId) file = models.File.objects.get(id=fileId)
streams = file.streams.filter(source=None) streams = file.streams.filter(source=None)
if streams.count() > 0: if streams.count() > 0:
stream = streams[0] stream = streams[0]
@ -102,6 +103,8 @@ def process_stream(fileId):
file.item.update_selected() file.item.update_selected()
if not file.item.rendered: if not file.item.rendered:
file.item.update_timeline() file.item.update_timeline()
if file.item.rendered:
file.item.save()
return True return True
@task(queue="encoding") @task(queue="encoding")