rss_converter_instagram.com.xsl: add a label if the content is a video
authorAntonio Ospite <ao2@ao2.it>
Sat, 25 Jul 2015 13:45:33 +0000 (15:45 +0200)
committerAntonio Ospite <ao2@ao2.it>
Sat, 25 Jul 2015 13:49:31 +0000 (15:49 +0200)
rss_converter_instagram.com.xsl

index cc540ce..4f1d14f 100644 (file)
             </pubDate>
             <description>
                 <xsl:text disable-output-escaping="yes">&lt;![CDATA[</xsl:text>
             </pubDate>
             <description>
                 <xsl:text disable-output-escaping="yes">&lt;![CDATA[</xsl:text>
-                <p><xsl:value-of select="$item-content-caption"/></p><br />
+                <p>
+                    <xsl:if test="./is_video/text() = 1">
+                        (Video) 
+                    </xsl:if>
+                    <xsl:value-of select="$item-content-caption"/>
+                </p><br />
                 <a href="{$item-permalink}"><img src="{$item-content-image}" /></a>
                 <xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
             </description>
                 <a href="{$item-permalink}"><img src="{$item-content-image}" /></a>
                 <xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
             </description>