From 4b941ccd0115402aa2c7b0f50578f7f2a0e8d40a Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 12 Jun 2015 12:06:02 +0200 Subject: [PATCH] rss_converter_instagram.com.xsl: update to new json format The new Instagram homepage provides json data in a format different than before, update the xsl to support it. Unfortunately the data in the new format does not provide the descriptions of the items, so use some placeholder values (URL, comments count, likes count) to present at least something. --- rss_converter_instagram.com.xsl | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/rss_converter_instagram.com.xsl b/rss_converter_instagram.com.xsl index f42ca8b..d9dfcdd 100644 --- a/rss_converter_instagram.com.xsl +++ b/rss_converter_instagram.com.xsl @@ -36,16 +36,16 @@ - - + + - - - - + + + + - <xsl:value-of select="concat($user-name, ': ', $item-content-title)"/> + <xsl:value-of select="$item-content-title"/> @@ -54,13 +54,13 @@ - + <![CDATA[


- + ]]>
@@ -71,7 +71,7 @@ - + @@ -84,7 +84,7 @@ - + @@ -94,10 +94,10 @@ <xsl:value-of select="$channel-link"/> </link> <url> - <xsl:value-of select="//user/profile_picture"/> + <xsl:value-of select="//user/profile_pic_url"/> </url> </image> - <xsl:apply-templates select="//userMedia/XML_Serializer_Tag"/> + <xsl:apply-templates select="//media/nodes/XML_Serializer_Tag"/> </channel> </rss> </xsl:template> -- 2.1.4