From 212f1feaef24be8afd8890a8f66e7d3c3287e65d Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 26 Jul 2013 14:34:49 +0200 Subject: [PATCH] typos --- oxtimelines/timeline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oxtimelines/timeline.py b/oxtimelines/timeline.py index 53e5c98..21b6a4d 100644 --- a/oxtimelines/timeline.py +++ b/oxtimelines/timeline.py @@ -396,15 +396,15 @@ class Timelines(): is_cut = False self.previous_distance = 0 else: - if self.short_cut and frame_i - self.short_cut > 2: + if self.short_cut and self.frame_i - self.short_cut > 2: self.cuts.append(self.short_cut) self.short_cut = None distance = self._get_distance(self.previous_frame_data, frame_data) is_cut = distance > 0.08 or (distance > 0.04 and abs(distance - self.previous_distance) > 0.04) if is_cut: - if frame_i - (0 if not self.cuts else self.short_cut or self.cuts[-1]) < 3: + if self.frame_i - (0 if not self.cuts else self.short_cut or self.cuts[-1]) < 3: is_cut = False - self.short_cut = frame_i + self.short_cut = self.frame_i else: self.cuts.append(self.frame_i) elif len(self.cut_frames) == self.max_cut_len: