save stream name
This commit is contained in:
parent
c8b59c34c6
commit
16b0240d5a
1 changed files with 1 additions and 0 deletions
|
@ -247,6 +247,7 @@ class File(models.Model):
|
||||||
ox.makedirs(os.path.dirname(stream.video.path))
|
ox.makedirs(os.path.dirname(stream.video.path))
|
||||||
with open(stream.video.path, 'w') as f:
|
with open(stream.video.path, 'w') as f:
|
||||||
f.write(chunk.read())
|
f.write(chunk.read())
|
||||||
|
stream.save()
|
||||||
else:
|
else:
|
||||||
with open(stream.video.path, 'a') as f:
|
with open(stream.video.path, 'a') as f:
|
||||||
#FIXME: should check that chunk_id/offset is right
|
#FIXME: should check that chunk_id/offset is right
|
||||||
|
|
Loading…
Reference in a new issue