Upgrading YouTube to newest version 1.2.0
Announcements
You choose "Browser Key":
https://www.jamroom.net/the-jamroom-network/documentation/modules/295/youtube-support#c2676

function myModule_export_csv($_post, $_user, $_conf)
{
// create your file...
$file = myModule_function_to_create_csv_file();
// use jrCore_send_download_file - it will automatically set all the right headers
jrCore_send_download_file($file);
}