save stream name

This commit is contained in:
j 2011-12-30 14:20:52 +05:30
parent c8b59c34c6
commit 16b0240d5a
1 changed files with 1 additions and 0 deletions

View File

@ -247,6 +247,7 @@ class File(models.Model):
ox.makedirs(os.path.dirname(stream.video.path))
with open(stream.video.path, 'w') as f:
f.write(chunk.read())
stream.save()
else:
with open(stream.video.path, 'a') as f:
#FIXME: should check that chunk_id/offset is right