processing
This commit is contained in:
parent
d5cd00f87a
commit
220c35ff7b
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue