diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 7b888fb18..8de7bec78 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -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