X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/5b6ed12927fe2a9ff14d1a286cfa467efd1ebbfe..9e944fa89112ab483f204110f19f37d557ade7bf:/rss_converter_twitter.com.xsl diff --git a/rss_converter_twitter.com.xsl b/rss_converter_twitter.com.xsl index b7c7124..dbbc537 100644 --- a/rss_converter_twitter.com.xsl +++ b/rss_converter_twitter.com.xsl @@ -32,7 +32,78 @@ https://twitter.com + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -41,10 +112,16 @@ + + + <xsl:value-of select="concat($user-name, ': ')"/> + <xsl:if test="$item-has-video"> + <xsl:text>(Video) </xsl:text> + </xsl:if> <!-- Prepend a space in front of the URLs which are not preceded by an open parenthesis, for aestethic reasons. @@ -69,11 +146,15 @@ <description> <xsl:value-of select="concat($user-name, ': ')"/> <xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text> - <xsl:copy-of select="$item-content/node()"/> + <xsl:if test="$item-has-video"> + <xsl:text>(Video) </xsl:text> + </xsl:if> + <xsl:apply-templates select="$item-content/node()"/> + <xsl:apply-templates select="$item-media/node()"/> <xsl:text disable-output-escaping="yes">]]></xsl:text> </description> <xsl:if test="$generate-enclosure = 1"> - <xsl:apply-templates select="$item-content//a[@data-expanded-url]"/> + <xsl:apply-templates select="$item-content//a[@data-expanded-url]" mode="enclosure"/> </xsl:if> </item> </xsl:template>