From 6a8e82fe0e3be0a0373339e478565709125521df Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 17 Sep 2013 15:11:55 +0200 Subject: [PATCH] dont store useless path in stream info --- pandora/archive/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 9c28ddb7..5da81ebf 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -584,6 +584,8 @@ class Stream(models.Model): def save(self, *args, **kwargs): if self.media and not self.info: self.info = ox.avinfo(self.media.path) + if 'path' in self.info: + del self.info['path'] self.oshash = self.info.get('oshash') self.duration = self.info.get('duration', 0) if 'video' in self.info and self.info['video']: