Update edit.py

Black and Aux Source events
This commit is contained in:
Jamie Hardt
2018-12-29 12:53:18 -08:00
parent 348962c3f7
commit 21f8880099

View File

@@ -82,6 +82,19 @@ class Edit:
""" """
return self.edit_statement.source return self.edit_statement.source
@property
def black(self):
"""
Black video or silence should be used as the source for this event.
"""
return self.source == "BL"
@property
def aux_source(self):
"""
An auxiliary source is the source of this event.
"""
return self.source == "AX"
@property @property
def source_file(self): def source_file(self):
@@ -102,7 +115,7 @@ class Edit:
NAME" remark on the EDL. This will return None if the information is NAME" remark on the EDL. This will return None if the information is
not present. not present.
""" """
if self.clip_name_statement != None: if self.clip_name_statement is None:
return self.clip_name_statement.name
else:
return None return None
else:
return self.clip_name_statement.name