Changes
- Introduce MediaRSS support in the RSS2.0 parser (thanks @evilpie !)
- Extended MediaRSS and iTunes support
- Use
pubDate
as alternative topublished
in Atom feed entry (thanks @Leinnan !) - Add support for the
xml:base
specification when constructing links + resolving URIs (thanks for the fantastic bug report again @jangernert )
MediaRSS + iTunes
The key change in this release is the support for MediaRSS and iTunes namepsaces and the subsequent impact on the model + element mapping, hence the bump to a new minor version.
Specifically:
enclosure
: the RSS spec states that<enclosure>
"Describes a media object that is attached to the item." - https://validator.w3.org/feed/docs/rss2.html#ltenclosuregtSubelementOfLtitemgtcontent:encoded
: RSS best practices state<content:encoded>
"...defines the full content of an item (OPTIONAL). This element has a more precise purpose than the description element, which can be the full content, a summary or some other form of excerpt at the publisher's discretion." - https://www.rssboard.org/rss-profile#namespace-elements-content-encoded- The MediaRSS and iTunes namespaces define media objects or attributes of items in the feed
Thus handling is as follows:
enclosure
is treated as if it was a MediaRSSMediaContent
element and wrapped in aMediaObject
content:encoded
is mapped to thecontent
field of anEntry
- MediaRSS elements without a parent group are added to a default
MediaObject
- iTunes elements are added to the default
MediaObject