dont store useless path in stream info

This commit is contained in:
j 2013-09-17 15:11:55 +02:00
parent a58f981706
commit 6a8e82fe0e

View file

@ -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']: