'Create a unique and MPD compatible name that maps to the given URI.'

def insert(self, name, uri, playlist=False):

    name = self._create_unique_name(name, uri)
    self._uri_from_name[name] = uri
    if playlist:
        self._playlist_name_from_uri[uri] = name
    else:
        self._browse_name_from_uri[uri] = name
    return name
