I’ve had a look at JFeed’s readme and it doesn’t mention anyway to get to an RSS item’s image:
JFeedItem properties
* item.title
* item.link
* item.description
* item.updated
* item.id
Does anyone know a way to parse these images?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Short answer “No“.
There is no default jFeed support for “image” access for RSS (or “icon”/”logo” access for ATOM).
That said you could always extend the library to support feed images. For example in jrss.js you could add:
From an RSS feed you would then be able to access:
But this only facilitates accessing the graphic for the entire feed and not individual items.
To support individual item images you would need to extend jFeed to allow it to support attributes in some way.
For example to support RSS 2.0 enclosures you could fold the attributes into elements, so you would be able to access something like:
In jrss.js you could add something like:
I’m tired and making this up as I go along, can you tell? 😉