From 5086327771e5d4901699ea023d7ba767c1e1043f Mon Sep 17 00:00:00 2001 From: nathan power Date: Thu, 25 Jun 2015 23:37:13 +0100 Subject: [PATCH] Get itunes:image url from rss feed if available --- lib/feed.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/feed.js b/lib/feed.js index 33d9c4b..56f247a 100644 --- a/lib/feed.js +++ b/lib/feed.js @@ -142,6 +142,9 @@ function formatRSS(json, options) { if (channel.ttl) { output.ttl = channel.ttl[0]; } + if (channel['itunes:image']) { + output.img = channel['itunes:image'][0].href; + } //ok, now lets get into the meat of the feed //just double check that it exists if (channel.item) {