danmactough / node-feedparser

Robust RSS, Atom, and RDF feed parsing in Node.js
Other
1.97k stars 192 forks source link

Allow adding more of the media:content optional attributes to the article enclosures property #192

Closed adriana-saroz closed 7 years ago

adriana-saroz commented 7 years ago

A media:content element can contain several optional attributes in addition to type and length, such as bitrate, height, width. I'd like to be able to use this additional info provided by media:content while using the generic article enclosures property (at the moment only length and type are passed on to the enclosure object), a simple use case would be to easily select the video element with the highest bitrate provided by the feed when there is several enclosures of the same type.