def extract_metadata(name):
    """ Try to determine metadata from video title. """
    seps = name.count(' - ')
    artist = title = None
    if seps == 1:
        pos = name.find(' - ')
        artist = name[:pos].strip()
        title = name[pos + 3:].strip()
    else:
        title = name.strip()
    return dict(artist=artist, title=title)
