w3stling / rssreader

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

Support for multiple enclosures #140

Closed w3stling closed 9 months ago

w3stling commented 9 months ago

Add support for multiple enclosures per RSS Item.

<rss>
   ...
   <item>
      ...
      <enclosure url="https://url1" length="1" type="image/jpeg" />
      <enclosure url="https://url2" length="2" type="image/png" />
      <enclosure url="https://url3" length="3" type="image/gif" />
   </item>
   ...
</rss>

Method in Item class getting multiple enclosures:

List<Enclosure> enclosures = item.getEnclosures();