X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/b27ae8a97d90e3a9da2a011b15b89a51d9f4fcc9..01dfd03d97afd0d5d06a36af37d96892905340ad:/src/rss_converter_twitter.com.xsl diff --git a/src/rss_converter_twitter.com.xsl b/src/rss_converter_twitter.com.xsl index 53bbb84..b59a97b 100644 --- a/src/rss_converter_twitter.com.xsl +++ b/src/rss_converter_twitter.com.xsl @@ -21,10 +21,10 @@ + @@ -35,6 +35,11 @@ + @@ -84,7 +89,7 @@ - + @@ -97,7 +102,7 @@ - + @@ -120,9 +125,12 @@ + - <xsl:value-of select="concat($user-name, ': ')"/> + <xsl:if test="($show-usernames = 1) or ($screen-name != $user-name)"> + <xsl:value-of select="concat($user-name, ': ')"/> + </xsl:if> <xsl:if test="$item-has-video"> <xsl:text>(Video) </xsl:text> </xsl:if> @@ -149,12 +157,18 @@ </pubDate> <description> <xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text> - <xsl:value-of select="concat($user-name, ':')"/> - <xsl:element name="br"/> + <xsl:if test="($show-usernames = 1) or ($screen-name != $user-name)"> + <xsl:value-of select="concat($user-name, ':')"/> + <xsl:element name="br"/> + </xsl:if> <xsl:if test="$item-has-video"> <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 +195,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 +212,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"/> + + + + + + + + +