[pLog-svn] r1122 - plog/trunk/class/xml/rssparser/magpierss

oscar at devel.plogworld.net oscar at devel.plogworld.net
Fri Feb 18 06:56:27 GMT 2005


Author: oscar
Date: 2005-02-18 06:56:27 +0000 (Fri, 18 Feb 2005)
New Revision: 1122

Modified:
   plog/trunk/class/xml/rssparser/magpierss/rss_parse.inc
Log:
committed a fix for magpierss in order to support enclosures


Modified: plog/trunk/class/xml/rssparser/magpierss/rss_parse.inc
===================================================================
--- plog/trunk/class/xml/rssparser/magpierss/rss_parse.inc	2005-02-18 03:36:38 UTC (rev 1121)
+++ plog/trunk/class/xml/rssparser/magpierss/rss_parse.inc	2005-02-18 06:56:27 UTC (rev 1122)
@@ -15,7 +15,7 @@
 * magpierss-general at lists.sourceforge.net
 *
 * @author           Kellan Elliott-McCrea <kellan at protest.net>
-* @version          0.7a
+* @version          0.7a (with enclosures)
 * @license          GPL
 *
 */
@@ -206,7 +206,14 @@
         {
             $this->inimage = true;
         }
-        
+        elseif (
+            $this->feed_type == RSS and
+            $el == 'enclosure' )
+        {
+            $this->current_item[$el][] = $attrs;
+            $this->incontent = $el;
+        }
+
         # handle atom content constructs
         elseif ( $this->feed_type == ATOM and in_array($el, $this->_CONTENT_CONSTRUCTS) )
         {




More information about the pLog-svn mailing list