Changeset - 0818825c629f
[Not reviewed]
default
0 1 0
Drew Perttula - 14 years ago 2011-06-16 07:10:33
drewp@bigasterisk.com
vidref bomb if a dir appears empty of frames. that's probably an error
Ignore-this: eb1db1289f1f295fa1f1220678085c11
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light9/vidref/replay.py
Show inline comments
 
@@ -197,6 +197,8 @@ class Replay(object):
 
            log.info("scanning %s", self.takeDir)
 
            self.existingFrames = sorted([Decimal(f.split('.jpg')[0])
 
                                          for f in os.listdir(self.takeDir)])
 
            if not self.existingFrames:
 
                raise NotImplementedError("suspiciously found no frames in dir %s" % self.takeDir)
 
            _existingFrames[self.takeDir] = self.existingFrames
 

	
 
    def tooShort(self, minSeconds=5):
0 comments (0 inline, 0 general)