From eee51e672c1b0c658c5ac5634c4482c0fd1d6039 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 24 Aug 2023 22:22:43 +0200 Subject: [PATCH] fix upload --- pandora/archive/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index affdd45a..d322cf3b 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -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: