From 94a1b9d57c813933bec9c0be55bc0e5c6e02aff8 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 5 Oct 2022 12:48:08 +0200 Subject: [PATCH] fix duration --- teleforma/models/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/models/core.py b/teleforma/models/core.py index f44eaeb5..e13164e6 100755 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -691,7 +691,7 @@ class Media(MediaBase): #duration = "%s:%s:%s" % (match.group(1), match.group(2), match.group(3)) duration = datetime.timedelta(hours=hours, minutes=minutes, seconds=seconds).total_seconds() else: - duration = None + duration = 0 self.approx_duration = duration -- 2.39.5