From 8b8fce67efe48521ed344220c74be3d9658f703c Mon Sep 17 00:00:00 2001 From: Antonio Ospite <ao2@ao2.it> Date: Sat, 25 Jul 2015 12:43:49 +0200 Subject: [PATCH] rss_converter_instagram.com.xsl: use the image caption as the item content Instagram has reintroduced serving the image caption in the json data, so use it; it is way nicer than the stats tweeper was showing before. --- rss_converter_instagram.com.xsl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rss_converter_instagram.com.xsl b/rss_converter_instagram.com.xsl index 1bb580f..9ef06ef 100644 --- a/rss_converter_instagram.com.xsl +++ b/rss_converter_instagram.com.xsl @@ -41,11 +41,11 @@ <xsl:template match="//media/nodes/XML_Serializer_Tag"> <xsl:variable name="item-content-image" select="./display_src"/> + <xsl:variable name="item-content-caption" select="./caption"/> <xsl:variable name="item-permalink" select="concat($BaseURL, '/p/', ./code, '/')"/> - <xsl:variable name="item-content-title" select="concat($user-name, ': ', $item-permalink, ', comments: ', ./comments/count, ', likes: ', ./likes/count)"/> <item> <title> - <xsl:value-of select="$item-content-title"/> + <xsl:value-of select="$item-content-caption"/> </title> <link> <xsl:value-of select="$item-permalink"/> @@ -59,7 +59,7 @@ </pubDate> <description> <xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text> - <p><xsl:value-of select="$item-content-title"/></p><br /> + <p><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">]]></xsl:text> </description> -- 2.1.4