From: Andrew Dolgov Date: Wed, 1 May 2013 18:05:59 +0000 (+0400) Subject: fix rss content:encoded not used X-Git-Tag: 1.7.9~25^2~32 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8a95d630a9183bf2c7b79f9e1f015eec328d8804;p=tt-rss.git fix rss content:encoded not used --- diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php index 29c8cb6b..5b43d0e8 100644 --- a/classes/feeditem/rss.php +++ b/classes/feeditem/rss.php @@ -40,6 +40,13 @@ class FeedItem_RSS extends FeedItem_Common { if ($content) { return $content->nodeValue; } + + $content = $this->xpath->query("content:encoded", $this->elem)->item(0); + + if ($content) { + return $content->nodeValue; + } + } function get_description() { diff --git a/classes/feedparser.php b/classes/feedparser.php index f61c2a00..d60db8a2 100644 --- a/classes/feedparser.php +++ b/classes/feedparser.php @@ -31,6 +31,7 @@ class FeedParser { $xpath->registerNamespace('rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'); $xpath->registerNamespace('slash', 'http://purl.org/rss/1.0/modules/slash/'); $xpath->registerNamespace('dc', 'http://purl.org/dc/elements/1.1/'); + $xpath->registerNamespace('content', 'http://purl.org/rss/1.0/modules/content/'); $this->xpath = $xpath;