def _get_timeline_metadata(project, timeline):
    media_pool = project.GetMediaPool()
    root_folder = media_pool.GetRootFolder()
    ls_folder = root_folder.GetClipList()
    timeline = project.GetCurrentTimeline()
    timeline_name = timeline.GetName()
    for tl in ls_folder:
        if (tl.GetName() not in timeline_name):
            continue
        return _get_metadata_media_pool_item(tl)
def _get_timeline_metadata(project, timeline):
    media_pool = project.GetMediaPool()
    root_folder = media_pool.GetRootFolder()
    ls_folder = root_folder.GetClipList()
    timeline = project.GetCurrentTimeline()
    timeline_name = timeline.GetName()
    for tl in ls_folder:
        if (tl.GetName() not in timeline_name):
            continue
        return _get_metadata_media_pool_item(tl)