X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/25866a7fed07f0353cb5f50cc2b2ccc6ef043241..dadaf9a1b2b883358afec542aab6790d5423cf74:/src/rss_converter_twitter.com.xsl diff --git a/src/rss_converter_twitter.com.xsl b/src/rss_converter_twitter.com.xsl index 332c236..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> @@ -194,18 +204,22 @@ </link> <description> <xsl:value-of select="normalize-space(//div[@class='ProfileHeaderCard'])"/> + <!-- 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"/> + + + + + + + + +