From 98b94fade8a6a02cd0a4fdfa7a56751641c15e11 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 12 Aug 2007 10:23:28 +0000 Subject: [PATCH] outpoint --- oxdbarchive/cache.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/oxdbarchive/cache.py b/oxdbarchive/cache.py index 48472af..d0c535f 100644 --- a/oxdbarchive/cache.py +++ b/oxdbarchive/cache.py @@ -42,9 +42,15 @@ def loadFrame(afile, position): def loadClip(afile, position): position = basename(position).replace(':', '.') + positions = position.split(';') + if len(positions) > 1: + position = positions[0] + outpoint= positions[1] + else: + outpoint = -1 flash = join(afile.frameFolder, '%s.%s' % (position, 'flv')) if not exists(flash): - afile.extractClip(position) + afile.extractClip(position, outpoint) if exists(flash): return loadFile(flash) return ''