javascript - Libsyn RSS with Google Feed -
i'm using google feeds api read rss-feeds libsyn.
as i've noticed google parses feed , hence excludes lot of stuff. there way alter include image link included in rss-feed?
var feed = new google.feeds.feed('http://podiet.libsyn.com/rss'); feed.setnumentries(25); feed.load(function (data) { console.log(data); });
it's working fine except fact of things in feed excluded.
set:
feed.setresultformat(google.feeds.feed.mixed_format)
then image tags included. can extracted example:
var feed = new google.feeds.feed('http://podiet.libsyn.com/rss'); feed.setresultformat(google.feeds.feed.mixed_format); feed.setnumentries(25); feed.load(function(result) { (var = 0; < result.feed.entries.length; i++) { var entry = result.feed.entries[i]; var itunesimageurl = entry.xmlnode.getelementsbytagnamens( 'http://www.itunes.com/dtds/podcast-1.0.dtd', 'image')[0]. attributes.getnameditem('href').value; console.log(itunesimageurl); } });
javascript rss feed google-feed-api
No comments:
Post a Comment