From: Antonio Ospite Date: Fri, 12 Jun 2015 10:06:02 +0000 (+0200) Subject: rss_converter_instagram.com.xsl: update to new json format X-Git-Tag: v0.4~24 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/4b941ccd0115402aa2c7b0f50578f7f2a0e8d40a?hp=e64422f4586b4ba25bbc13e56b8ac02ad74d92b7 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. --- 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>