There's a couple feeds we have which have both the description and content:encoded elements. We want to be able to use the full text, which is in the content:encoded tags. Looking through the code, this seems to be how it should work, but doesn't at the moment. I even tested by commenting out the code looking for the "description" and it isn't even picking up anything from content:encoded at all.

Here's a sample feed: http://www.feedcraft.com/feed/jamble/Jamble+Magazine/

I'm not thoroughly knowledgeable of handling feeds, thoughts?

Comments

brenda003’s picture

Common syndication parser, by the way.

aron novak’s picture

Yes, unfortunately FeedAPI common syndication parser does not look into content:encoded tags currently. I'll consider to fix this soon. Anyway, can you try out what happens if you use parser simplepie? do you get the full content? Thanks for your help in advance!

brenda003’s picture

Yep, I switched to using Simplepie and it works.

aron novak’s picture

Title: Doesn't seem to see full content in content:encoded tags? » Add content:encoded support to parser_common_syndication
Category: bug » feature

I will add content:encoded support to parser_common_syndication. This is a feature request, it's a fact that parser_simplepie is more robust parser, parser_common_syndication should handle content:encoded too.

lennart’s picture

Version: 5.x-1.x-dev » 6.x-1.2

I am using FeedAPI 6.x-1.2 and content:encoded still does not get picked up with the common syndication parser.

I would prefer to use the CSP, but for now I will use SimplePie then :)

Is there still a plan to enable content:encoded for CSP?

aron novak’s picture

Category: feature » bug
Status: Active » Fixed

It was a bug and it should be fixed now. (the code contained support for it but it was broken)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

lennart’s picture

Version: 6.x-1.2 » 6.x-1.4
Status: Closed (fixed) » Active

With the new 6.x-1.4 content:encoded does not get picked up with the common syndication parser.

aron novak’s picture

Status: Active » Postponed (maintainer needs more info)

lennart: Example URL? What is the type of your feed?

lennart’s picture

An example could be:
http://www2.adm.ku.dk/portal/presse/rss.asp?kategori=all

From the source:

<?xml version="1.0"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"><channel><title>Nyt fra KU</title><link>http://www.ku.dk/nyheder</link><description>Nyt fra KU</description><pubDate>Thu, 06 Nov 2008 15:05:00 +0100</pubDate><language>da</language><item><title>Guld afhjælper hjerneskader</title><link>http://www.ku.dk/nyheder/vis_indlaeg.asp?type=1&amp;id=6093&amp;ref=0</link><pubDate>Thu, 06 Nov 2008 15:05:00 +0100</pubDate><category>Forskning</category><category>Det Sundhedsvidenskabelige Fakultet</category><guid isPermaLink="false">http://www.ku.dk/nyheder/vis_indlaeg.asp?type=1&amp;id=6093&amp;ref=0</guid><description><![CDATA[Forskere har længe vidst, at guldpartikler har en gavnlig virkning mod betændelsestilstande i kroppen. Nu har medicin-studerende Mie Pedersen sammen med hjerneforsker Milena Penkowa, begge fra Københavns Universitet, vist, at behandling med guldpart...]]></description><content:encoded><![CDATA[Forskere har længe vidst, at guldpartikler har en gavnlig virkning mod betændelsestilstande i kroppen. Nu har medicin-studerende Mie Pedersen sammen med hjerneforsker Milena Penkowa, begge fra Københavns Universitet, vist, at behandling med guldpartikler kan bruges til at begrænse følgerne af en hjerneskade. Og i modsætning til guldbehandling andre steder i kroppen, kan en behandling i hjernen ske uden skadelige bivirkninger for kroppens organer.<br><br> 

Forskerne fra Københavns Universitet har sammen med en gruppe forskere fra Aarhus Universitet undersøgt guldpartiklernes effekt på mus med hjerneskader. I forskernes forsøg viste guldbehandlingen sig markant at mindske de betændelsesprocesser, der typisk følger med en hjerneskade. Da man ved, at betændelsestilstande koster hjerneceller, betyder det, at en behandling med guld kan forhindre yderligere hjernecelledød i forbindelse med en hjerneskade og dermed begrænse skadens omfang.<br><br>

Læger har de sidste 50 år effektivt anvendt guld - i form af guldholdige medikamenter – mod f.eks. leddegigt. Desværre har guld også vist sig at have uheldige bivirkninger, da metallet, som andre tungmetaller, ophobes i organerne, blandt andet i nyrerne, hvor det virker giftigt og kan føre til nyresvigt. Hjernen er til gengæld ”afskåret” fra resten af kroppen gennem den såkaldte blod-hjerne-barriere, således at metallet ikke kan trænge ud til andre organer. Derfor er guldbehandling af hjerneskader ikke forbundet med samme bivirkninger, som behandling andre steder i kroppen.<br><br>

Læs mere om forskernes forsøg med guldbehandling på:<br> 
<a href="http://sund.ku.dk/sund-nyheder/hjerneguld/" target="_top">Det Sundhedsvidenskabelige Fakultets hjemmeside </a><br> og på 
<a href="http://www.videnskab.dk/content/dk/krop_sundhed/guld_kan_bruges_mod_hjerneskader" target="_top">www.videnskab.dk</a>
]]></content:encoded></item>

Only the content in the description tag is being included, not the content in the content:encoded tag.

aron novak’s picture

Status: Postponed (maintainer needs more info) » Fixed

Well, the problem was that the description is available, CSP did not see into content:encoded. Now it's fixed. The longer text will be chosen.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.