def METHOD_NAME(config):
    logger.debug(type(config))
    params = {}
    # url overrides all other settings
    if 'url' in config:
        return config['url'], params
    category = config['category']
    if category == 'tv':
        category = 'tvsearch'
    if category == 'all':
        category = 'search'
    params['t'] = category
    params['extended'] = 1
    params['apikey'] = config.get('apikey')
    url = f"{config['website']}/api"
    return url, params