rss_converter_instagram.com.xsl: don't use a template for the enclosure
[tweeper.git] / rss_converter_dilbert.com.xsl
index b7f9fbf..85f6648 100644 (file)
                 <xsl:value-of select="$item-permalink"/>
             </guid>
             <pubDate>
-                <xsl:value-of select="php:functionString('Tweeper::strToGmdate', normalize-space(.//date))"/>
+                <xsl:value-of select="php:functionString('Tweeper::strToRssDate', normalize-space(.//date))"/>
             </pubDate>
             <description>
                 <xsl:text disable-output-escaping="yes">&lt;![CDATA[</xsl:text>
                 <img src="{$picture-url}" alt="{$picture-title}"/>
                 <xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
             </description>
+            <xsl:if test="$generate-enclosure = 1">
+                <xsl:copy-of select="php:function('Tweeper::generateEnclosure', string($picture-url))"/>
+            </xsl:if>
         </item>
     </xsl:template>