forked from 0x2620/pandora
save again
This commit is contained in:
parent
e3d0893a00
commit
084fde7b67
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue