def create_otio_markers(track_item, fps):
    track_item_markers = track_item.GetMarkers()
    markers = []
    for marker_frame in track_item_markers:
        note = track_item_markers[marker_frame]['note']
        if (('{' in note) and ('}' in note)):
            metadata = json.loads(note)
        else:
            metadata = {'note': note}
        markers.append(otio.schema.Marker(name=track_item_markers[marker_frame]['name'], marked_range=create_otio_time_range(marker_frame, track_item_markers[marker_frame]['duration'], fps), color=track_item_markers[marker_frame]['color'].upper(), metadata=metadata))
    return markers
def create_otio_markers(track_item, fps):
    track_item_markers = track_item.GetMarkers()
    markers = []
    for marker_frame in track_item_markers:
        note = track_item_markers[marker_frame]['note']
        if (('{' in note) and ('}' in note)):
            metadata = json.loads(note)
        else:
            metadata = {'note': note}
        markers.append(otio.schema.Marker(name=track_item_markers[marker_frame]['name'], marked_range=create_otio_time_range(marker_frame, track_item_markers[marker_frame]['duration'], fps), color=track_item_markers[marker_frame]['color'].upper(), metadata=metadata))
    return markers