forked from 0x2620/pandora
dont store useless path in stream info
This commit is contained in:
parent
a58f981706
commit
6a8e82fe0e
1 changed files with 2 additions and 0 deletions
|
@ -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']:
|
||||
|
|
Loading…
Reference in a new issue