]> git.parisson.com Git - teleforma.git/commitdiff
fix duration
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 5 Oct 2022 10:48:08 +0000 (12:48 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 5 Oct 2022 10:48:08 +0000 (12:48 +0200)
teleforma/models/core.py

index f44eaeb5cad787c369745672f5cd507a4203f4ce..e13164e604f47657a1c73202142754e9ae5871ae 100755 (executable)
@@ -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