diff --git a/src/rss.js b/src/rss.js index 2e90c96..657fb1a 100755 --- a/src/rss.js +++ b/src/rss.js @@ -72,6 +72,27 @@ module.exports = { obj.description = !util.isNullOrUndefined(val.description) ? val.description[0] : ''; obj.url = obj.link = !util.isNullOrUndefined(val.link) ? val.link[0] : ''; + // Medium Support via @sstrubberg + if (val["guid"]) { + obj.guid = val["guid"][0]; + } + if (val["category"]) { + obj.category = val["category"][0]; + } + if (val["dc:creator"]) { + obj.dc_creator = val["dc:creator"][0]; + } + if (val["pubDate"]) { + obj.pubDate = val["pubDate"][0]; + } + if (val["atom:updated"]) { + obj.atom_updated = val["atom:updated"][0]; + } + if (val["content:encoded"]) { + obj.content_encoded = val["content:encoded"][0]; + } + // End of Medium Support via @sstrubberg + if (val['itunes:subtitle']) { obj.itunes_subtitle = val['itunes:subtitle'][0]; }