summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1d3e3dd)
The static scraped content only provides a preview of GIF files with the
first frame only, just like in the case of videos.
Set a label when a tweet contains a GIF so that the user can decide to
open the tweet in a full fledged browser to properly see the GIF.
<xsl:variable name="item-permalink" select="concat($BaseURL, .//div[@data-permalink-path]/@data-permalink-path)"/>
<xsl:variable name="item-has-video" select="$item-media//*[contains(@class, 'PlayableMedia--video')]"/>
<xsl:variable name="item-permalink" select="concat($BaseURL, .//div[@data-permalink-path]/@data-permalink-path)"/>
<xsl:variable name="item-has-video" select="$item-media//*[contains(@class, 'PlayableMedia--video')]"/>
+ <xsl:variable name="item-has-gif" select="$item-media//*[contains(@class, 'PlayableMedia--gif')]"/>
<item>
<title>
<xsl:value-of select="concat($user-name, ': ')"/>
<item>
<title>
<xsl:value-of select="concat($user-name, ': ')"/>
<xsl:text> (Video)</xsl:text>
<xsl:element name="br"/>
</xsl:if>
<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()"/>
<xsl:element name="span">
<xsl:attribute name="style">white-space: pre-wrap;</xsl:attribute>
<xsl:apply-templates select="$item-content/node()"/>