X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/b27ae8a97d90e3a9da2a011b15b89a51d9f4fcc9..29e51afe9ef63c74ad8d770bd637d982ec2c85f1:/src/rss_converter_twitter.com.xsl diff --git a/src/rss_converter_twitter.com.xsl b/src/rss_converter_twitter.com.xsl index 53bbb84..1d98fa2 100644 --- a/src/rss_converter_twitter.com.xsl +++ b/src/rss_converter_twitter.com.xsl @@ -21,7 +21,6 @@ @@ -35,6 +34,11 @@ + @@ -84,7 +88,7 @@ - + @@ -97,7 +101,7 @@ - + @@ -120,6 +124,7 @@ + <xsl:value-of select="concat($user-name, ': ')"/> @@ -155,6 +160,10 @@ <xsl:text> (Video)</xsl:text> <xsl:element name="br"/> </xsl:if> + <xsl:if test="$item-has-gif"> + <xsl:text> (GIF)</xsl:text> + <xsl:element name="br"/> + </xsl:if> <xsl:element name="span"> <xsl:attribute name="style">white-space: pre-wrap;</xsl:attribute> <xsl:apply-templates select="$item-content/node()"/> @@ -181,6 +190,7 @@ </xsl:choose> </xsl:variable> <xsl:variable name="channel-link" select="//link[@rel='canonical']/@href"/> + <xsl:variable name="channel-image" select="//a[contains(@class, 'profile-picture')]/@href"/> <rss version="2.0"> <xsl:attribute name="xml:base"><xsl:value-of select="$BaseURL" /></xsl:attribute> @@ -197,17 +207,19 @@ <!-- The following rule should only match on hashtag URLs --> <xsl:value-of select="normalize-space(//div[@class='SearchNavigation-textContainer'])"/> </description> - <image> - <title> - <xsl:value-of select="$channel-title"/> - - - - - - - - + + + + <xsl:value-of select="$channel-title"/> + + + + + + + + +