Tuesday, August 18, 2009 at 7:33 PM.

newsRiverSuite.podcatcher.storyArrivedCallback

on storyArrivedCallback (adrservice, adrItem) {
	<<Changes
		<<1/18/06; 2:15:03 PM by DW
			<<Created.
			<<edit (@aggregatorData.services.["http://www.morningcoffeenotes.com/rss.xml"].compilation.items.["00022"])
				<<true
	local (adrdata = newsRiverSuite.init ());
	if adrdata^.newsRiver.podcatcher.prefs.enabled {
		if defined (adritem^.enclosure) {
			local (serialnum = adrdata^.newsRiver.podcatcher.prefs.queueSerialNum++);
			local (adrq = @adrdata^.newsRiver.podcatcher.queue.[string.padwithzeros (serialnum, 5)]);
			new (tabletype, adrq);
			adrq^.url = adritem^.enclosure.url;
			adrq^.length = adritem^.enclosure.length;
			adrq^.type = adritem^.enclosure.type;
			adrq^.description = adritem^.title;
			adrq^.adrservice = adrservice;
			try {
				adrq^.pubDate = adritem^.data.pubDate}
			else {
				adrq^.pubDate = date (0)}}};
	return (true)}
<<bundle //test code
	<<storyArrivedCallback (@aggregatorData.services.["http://www.morningcoffeenotes.com/rss.xml"], @aggregatorData.services.["http://www.morningcoffeenotes.com/rss.xml"].compilation.items.["00022"])



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.