docs: function pc_export() {
  
  var hidden = 0;
  
  	console.log('\n* Programme Cache:');
  	var index = indexBase;
  	for (var i in programme_cache) {
  		index++;
  		var p = programme_cache[i];
  		var present = giUtils.binarySearch(download_history,p.pid)>=0;
  		var title = p.title;
  		var subtitle = (p.display_titles && p.display_titles.subtitle ? p.display_titles.subtitle : p.presentation_title);
  		var available = ((p.available_versions) && (p.available_versions.available > 0));
  		var position = p.episode_of ? p.episode_of.position : 1;
  		var totaleps = 1;
  		var series = 1;
  		var len = (p.version && p.version.duration) ? nitro.iso8601durationToSeconds(p.version.duration) : '0';
  
  		var thumb = p.image.template_url.replace('$recipe','150x84');
  
  //#index|type|name|pid|available|episode|seriesnum|episodenum|versions|duration|desc|channel|categories|thumbnail|timeadded|guidance|web
  
  		if (i==programme_cache.length-1) {
  			debuglog(JSON.stringify(p,null,2));
  		}
  
  		console.log(index+'|'+(p.media_type == 'Video' ? 'tv' : 'radio')+'|'+title+'|'+p.pid+'|'+
  			(available ? 'Available' : 'Unavailable')+'|'+subtitle+'|'+'|'+series+'|'+position+'|'+'default'+'|'+
  			len+'||'+(p.master_brand ? p.master_brand.mid : 'unknown')+'|'+category[0]+'|'+thumb+'|'+Math.floor(Date.now()/1000)+
  			'||'+'http://bbc.co.uk/programmes/'+p.pid+'|');
  	}
  }