forked from 0x2620/pandora
fix upload
This commit is contained in:
parent
49187c8faf
commit
eee51e672c
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ class File(models.Model):
|
|||
|
||||
if self.type not in ('audio', 'video'):
|
||||
self.duration = None
|
||||
else:
|
||||
elif self.id:
|
||||
duration = sum([s.info.get('duration', 0)
|
||||
for s in self.streams.filter(source=None)])
|
||||
if duration:
|
||||
|
|
Loading…
Reference in a new issue