'Prompt user whether to abort if playlist exceeds threshold. If
True, cancel playback. If False, execute play command.'

def _exceeds_threshold(self, selection, command_str, open_args, item_type='track'):

    warning_threshold = config['play']['warning_threshold'].get(int)
    if (warning_threshold and (len(selection) > warning_threshold)):
        if (len(selection) > 1):
            item_type += 's'
        ui.print_(ui.colorize('text_warning', u'You    are    about    to    queue    {0}    {1}.'.format(len(selection), item_type)))
        if (ui.input_options((u'Continue', u'Abort')) == 'a'):
            return True
    return False
