]> git.parisson.com Git - teleforma.git/commitdiff
fix days
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 8 Jul 2026 21:38:50 +0000 (23:38 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 8 Jul 2026 21:38:50 +0000 (23:38 +0200)
teleforma/models/core.py

index 966312b15698aa0b4de0063f9490373fc3034ef4..3447b199b5c50650b25fd9cb56d972d128a3554b 100644 (file)
@@ -1129,7 +1129,7 @@ class Media(MediaBase):
                              "default=noprint_wrappers=1:nokey=1", self.file.path],
             stdout=subprocess.PIPE,
             stderr=subprocess.STDOUT)
-        self.duration = datetime.timedelta(days =-1, seconds = float(result.stdout))
+        self.duration = datetime.timedelta(days=0, seconds=float(result.stdout))
 
     class Meta(MetaCore):
         db_table = app_label + '_' + 'media'