add seek to node, add get

This commit is contained in:
jb-alvarado 2021-02-10 17:46:18 +01:00
parent fcd460d61a
commit aaf7cf2b5c

View File

@ -73,7 +73,7 @@ class GetSourceFromPlaylist:
self.seek, self.out, self.first, self.last
)
self.node['in'] = self.seek
self.node['seek'] = self.seek
self.node['out'] = self.out
def last_and_next_node(self, index):
@ -161,9 +161,9 @@ class GetSourceFromPlaylist:
# loop through all clips in playlist and get correct clip in time
for index, self.node in enumerate(self.clip_nodes['program']):
self.seek = get_float(self.node['in'], 0)
self.duration = get_float(self.node['duration'], 20)
self.out = get_float(self.node['out'], self.duration)
self.seek = get_float(self.node.get('in'), 0)
self.duration = get_float(self.node.get('duration'), 20)
self.out = get_float(self.node.get('out'), self.duration)
# first time we end up here
if self.first and \