]> git.wh0rd.org - tt-rss.git/commitdiff
fix rss content:encoded not used
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 1 May 2013 18:05:59 +0000 (22:05 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 1 May 2013 18:05:59 +0000 (22:05 +0400)
classes/feeditem/rss.php
classes/feedparser.php

index 29c8cb6b43f6b2aafeabbc6103511c66ab92d35a..5b43d0e8c2fee659329d9e6838135b2886a9cdfa 100644 (file)
@@ -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() {
index f61c2a0031aba86c465abb0298ca2e1a23d94477..d60db8a28b33a4788cf140f2a5aee904c4573e50 100644 (file)
@@ -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;