fix upload

This commit is contained in:
j 2023-08-24 22:22:43 +02:00
parent 49187c8faf
commit eee51e672c

View file

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