w3stling / rssreader

A simple Java library for reading RSS and Atom feeds
MIT License
152 stars 25 forks source link

"content" tag should be treated separately #135

Closed GrenderG closed 8 months ago

GrenderG commented 9 months ago

At this moment the content tag is being treated as description, but it should be treated separately (adding the content variable along with setContent(), getContent() methods, etc).

Many feeds have the entire article there (most of WordPress sites, in fact).

w3stling commented 9 months ago

All field names in the Item class and the Channel class are named after the RSS tag names. Atom tags are mapped to a field that best matches a corresponding RSS tag. Therefore is Atom content tag mapped to the description field. In this way both RSS feeds and Atom feeds can be treated the same.

var mixedFeed = new RssReader().read(List.of(rssFeedUrl, atomFeedUrl));