When the FCP 7 XML adapter encounters a timeline where MediaReference objects have no available_range set (as common when loading EDLs), it errors out:
(redacted for brevity)
File "/Users/username/envs/otiocppdev/lib/python3.7/site-packages/opentimelineio/adapters/fcp_xml.py", line 1483, in _build_file
file_e.append(_build_rate(available_range.start_time.rate))
AttributeError: 'NoneType' object has no attribute 'start_time'
In this case, the adapter could fallback to the clip's source_range.
This also brings up some considerations generally about how the FCP XML adapter should be building file nodes in the XML, there is currently no resolution of two MediaReference instances with the same target_url but different available_range.
Relates to #627 - This area of code is strongly targeted at ExternalReference
When the FCP 7 XML adapter encounters a timeline where
MediaReference
objects have noavailable_range
set (as common when loading EDLs), it errors out:In this case, the adapter could fallback to the clip's
source_range
.This also brings up some considerations generally about how the FCP XML adapter should be building
file
nodes in the XML, there is currently no resolution of twoMediaReference
instances with the sametarget_url
but differentavailable_range
.Relates to #627 - This area of code is strongly targeted at
ExternalReference