From 098d953bbc8acc4f7dc8d54be0ede9b853c63f10 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 8 Aug 2021 19:47:38 +0200 Subject: [PATCH] filter more invalid clips --- pandora/edit/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/edit/models.py b/pandora/edit/models.py index f0a5abce..86fdc108 100644 --- a/pandora/edit/models.py +++ b/pandora/edit/models.py @@ -94,6 +94,8 @@ class Edit(models.Model): # dont add clip if in/out are invalid if not c.annotation: duration = c.item.sort.duration + if c.start is None or c.end is None: + return False if c.start > c.end \ or round(c.start, 3) >= round(duration, 3) \ or round(c.end, 3) > round(duration, 3):