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'):
|
if self.type not in ('audio', 'video'):
|
||||||
self.duration = None
|
self.duration = None
|
||||||
else:
|
elif self.id:
|
||||||
duration = sum([s.info.get('duration', 0)
|
duration = sum([s.info.get('duration', 0)
|
||||||
for s in self.streams.filter(source=None)])
|
for s in self.streams.filter(source=None)])
|
||||||
if duration:
|
if duration:
|
||||||
|
|
Loading…
Reference in a new issue