avoid recomputing timeline for each part
This commit is contained in:
parent
285877054e
commit
750633eb7e
1 changed files with 5 additions and 3 deletions
|
@ -160,11 +160,13 @@ def extract_stream(fileId):
|
||||||
if stream.available:
|
if stream.available:
|
||||||
stream.make_timeline()
|
stream.make_timeline()
|
||||||
stream.extract_derivatives()
|
stream.extract_derivatives()
|
||||||
|
file.extract_tracks()
|
||||||
# get current version from db
|
# get current version from db
|
||||||
file = models.File.objects.get(id=fileId)
|
file = models.File.objects.get(id=fileId)
|
||||||
file.item.update_timeline()
|
if not file.item.rendered \
|
||||||
update_poster(file.item.public_id)
|
and not file.item.files.exclude(id=fileId).filter(Q(queued=True) | Q(encoding=True)).count():
|
||||||
file.extract_tracks()
|
file.item.update_timeline()
|
||||||
|
update_poster(file.item.public_id)
|
||||||
models.File.objects.filter(id=fileId).update(encoding=False)
|
models.File.objects.filter(id=fileId).update(encoding=False)
|
||||||
Task.finish(file.item)
|
Task.finish(file.item)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue