Some infrastructure for CmxTransitions

This commit is contained in:
Jamie Hardt
2018-12-01 14:35:26 -08:00
parent 6611e38b9f
commit b60610aa8b
3 changed files with 18 additions and 6 deletions

View File

@@ -2,6 +2,7 @@
# (c) 2018 Jamie Hardt
from .parse_cmx_statements import parse_cmx3600_statements
from .cmx_event import CmxEvent, CmxTransition
from collections import namedtuple
from re import compile, match
@@ -129,11 +130,6 @@ def parse_cmx3600(file):
return event_list(title, parser)
CmxEvent = namedtuple('CmxEvent',['title','number','clip_name',
'source_name','channels','source_start','source_finish','record_start',
'record_finish','fcm_drop'])
def event_list(title, parser):
state = {"fcm_drop" : False}
@@ -155,6 +151,7 @@ def event_list(title, parser):
this_event = {'title': title, 'number': raw_event.event, 'clip_name': None ,
'source_name': raw_event.source,
'channels': channels,
'transition': CmxTransition(raw_event.trans, raw_event.trans_op),
'source_start': raw_event.source_in,
'source_finish': raw_event.source_out,
'record_start': raw_event.record_in,