From 16b0240d5a367eda9e7cd3710bac7c8825f60e0d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 30 Dec 2011 14:20:52 +0530 Subject: [PATCH] save stream name --- pandora/archive/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 7b888fb1..8de7bec7 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