'Decide what to do when a new album or item seems similar to one
that\'s already in the library.'

def resolve_duplicate(self, task, found_duplicates):

    log.warning(u'This    {0}    is    already    in    the    library!', (u'album' if task.is_album else u'item'))
    if config['import']['quiet']:
        log.info(u'Skipping.')
        sel = u's'
    else:
        for duplicate in found_duplicates:
            print_((u'Old:    ' + summarize_items((list(duplicate.items()) if task.is_album else [duplicate]), (not task.is_album))))
        print_((u'New:    ' + summarize_items(task.imported_items(), (not task.is_album))))
        sel = ui.input_options((u'Skip    new', u'Keep    both', u'Remove    old'))
    if (sel == u's'):
        task.set_choice(importer.action.SKIP)
    elif (sel == u'k'):
        pass
    elif (sel == u'r'):
        task.should_remove_duplicates = True
    else:
        assert False
