Skip to content

Commit adda9bf

Browse files
authored
Merge pull request rbren#17 from rub1e/patch-1
Fix for when no "itunes:owner"
2 parents 1ce1dc5 + 02a6184 commit adda9bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ var decorateItunes = function decorateItunes(json, channel) {
151151
},
152152
image: channel['itunes:image'][0].$.href
153153
};
154+
} else {
155+
json.feed.itunes = {}
154156
}
155157
PODCAST_TOP_FIELDS.forEach(function(f) {
156158
if (channel['itunes:' + f]) json.feed.itunes[f] = channel['itunes:' + f][0];

0 commit comments

Comments
 (0)