nmdias / FeedKit

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

RSS Media #16

Closed damienissa closed 7 years ago

damienissa commented 7 years ago

What about rss media parsing? I didn't see how I can get thumbnail from RSSFeedItem. You can research this spec: http://www.rssboard.org/media-rss items for test:

testRss.txt

damienissa commented 7 years ago

@nmdias Thanks. And I have a question. How I can get item XML value? Maybe your library have some private method? I want to try parse image from current XML.

nmdias commented 7 years ago

What element or attribute exactly are you trying to get? Does it belong to a spec, or is it contained XML data within an Element of a feed?

See if #14 helps

damienissa commented 7 years ago

@nmdias I mean that "media" is element of feed item. "media" can has many optional attributes. I try to use "media:thumbnail". But another users maybe need to use other attributes. You can read more info at link: http://www.rssboard.org/media-rss

nmdias commented 7 years ago

@damienissa you can't at this time. Currently, FeedKit doesn't support the Media namespace, so there aren't any private methods or properties that would allow you to read them.

I'll make sure to include this feature (the complete Media namespace) in the 6.0.0 release.

nmdias commented 7 years ago

The RSS Media Namespace is now available in the master branch. It will also be available in the future 6.0.0 release.