forked from 0x2620/pandora
avoid saving item twice
This commit is contained in:
parent
de9b062d63
commit
0f9e80e1e6
1 changed files with 1 additions and 4 deletions
|
@ -136,10 +136,7 @@ def extract_stream(fileId):
|
|||
stream.extract_derivatives()
|
||||
# get current version from db
|
||||
file = models.File.objects.get(id=fileId)
|
||||
if not file.item.rendered:
|
||||
file.item.update_timeline()
|
||||
if file.item.rendered:
|
||||
file.item.save()
|
||||
file.extract_tracks()
|
||||
models.File.objects.filter(id=fileId).update(encoding=False)
|
||||
|
||||
|
|
Loading…
Reference in a new issue