Filter single taxonomy XML sitemap query

Since SEOPress 2.4

function sp_sitemaps_single_term_query($args, $tax) {
//Default Query  
//$args = array('taxonomy' => $tax,'hide_empty' => false, 'number' => 1000, 'meta_key' => '_seopress_robots_index', 'meta_value' => 'yes', 'meta_compare' => 'NOT EXISTS', 'fields' => 'ids', 'lang' => '');
    if ($tax == 'download_category') {
        //If download_category taxonomy XML Sitemap, change posts_per_page value to 100
        $args['posts_per_page'] = '100';
        return $args;
    } else {
        return $args;
    }
}
add_filter('seopress_sitemaps_single_term_query', 'sp_sitemaps_single_term_query', 10, 2);