From aaf7cf2b5c7ada48a49d08a89b19a56b60906338 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Wed, 10 Feb 2021 17:46:18 +0100 Subject: [PATCH] add seek to node, add get --- ffplayout/playlist.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ffplayout/playlist.py b/ffplayout/playlist.py index 815de3a3..87276580 100644 --- a/ffplayout/playlist.py +++ b/ffplayout/playlist.py @@ -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 \