nmdias / FeedKit

An RSS, Atom and JSON Feed parser written in Swift
MIT License
1.19k stars 173 forks source link

Removed image URL appending #113

Closed kaseyb002 closed 4 years ago

kaseyb002 commented 4 years ago

Currently the parser is appending image urls to an existing image url if one exists. This leads to setting the field as http://example.com/image.pnghttp://example.com/image2.png if there are multiple images listed for the feed. This change makes it so the image URL field gets replaced, instead of getting appended to, whenever it finds a new image.

Example of where this happens: https://caneandrinse.com/feed/podcast/

Another alternative would be to add/change an var images: [RSSFeedImage] field.

kaseyb002 commented 4 years ago

This introduces its own bugs. Closing.