def summary(task):
    """Given an ImportTask, produce a short string identifying the
    object.
    """
    if task.is_album:
        return u'Album {1} by artist: {0}'.format(
            task.cur_artist or 'Unknown', task.cur_album or 'Unknown'
        )
    else:
        return u'Track {1} by artist: {0}'.format(
            task.item.artist or 'Unknown', task.item.title or 'Unknown'
        )