diff --git a/pandora/clip/models.py b/pandora/clip/models.py index 1298c91e..47a14d86 100644 --- a/pandora/clip/models.py +++ b/pandora/clip/models.py @@ -17,7 +17,7 @@ class MetaClip: start = min(self.start, self.item.sort.duration) end = min(self.end, self.item.sort.duration) self.duration = end - start - if int(end*25) - int(start*25): + if int(end*25) - int(start*25) > 0: self.hue, self.saturation, self.lightness = extract.average_color( self.item.timeline_prefix, self.start, self.end) self.volume = extract.average_volume(self.item.timeline_prefix, self.start, self.end)