spacer
spacer  spacer
Top > July 2012 > 7/18/12 by DW

River2/NBC News bug


spacer The Olympics feeds for NBC News have a problem. Their guid elements are not permalinks, but they don't set the isPermalink attribute false, and it defaults true according to the RSS 2.0 spec. An example of an NBC News feed.
spacer River2 is using those guids, and the result is broken links on the Olympics river. Since NBC is broadcasting the Olympics in the US, their feeds are pretty good, comprehensive. So let's work around the problem.
spacer Plan
spacer When generating the JSON version of the river, pass the permalink through string.urlsplit. If it fails, set the permalink in the JSON to the empty string. That will force the jQuery code to use the link instead of the permalink.
spacer Parts
spacer river2Suite.viewJsonNews3

Posted on Wednesday, July 18, 2012 at 11:45 AM by Dave Winer.
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.