From 437391caf93e15ecc238c62f395198d5f9b69e04 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 3 Feb 2015 23:20:16 +0530 Subject: [PATCH] load info from stream in file has no info --- pandora/archive/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 71c904c6..d8ac6c45 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -331,6 +331,10 @@ class File(models.Model): stream.available = True stream.info = {} stream.save() + if self.info.keys() == ['extension']: + self.info.update(stream.info) + self.parse_info() + self.save() return True, stream.media.size return save_chunk(stream, stream.media, chunk, offset, name, done_cb) return False, 0