update poster after processing stream

This commit is contained in:
j 2016-08-28 13:38:46 +02:00
parent b3c8a61ce6
commit 78c26daaeb

View file

@ -133,6 +133,7 @@ def process_stream(fileId):
if not file.item.rendered \ if not file.item.rendered \
and not file.item.files.exclude(id=fileId).filter(Q(queued=True) | Q(encoding=True)).count(): and not file.item.files.exclude(id=fileId).filter(Q(queued=True) | Q(encoding=True)).count():
file.item.update_timeline() file.item.update_timeline()
update_poster(file.item.public_id)
if file.item.rendered: if file.item.rendered:
file.item.save() file.item.save()
models.File.objects.filter(id=fileId).update(encoding=False) models.File.objects.filter(id=fileId).update(encoding=False)