X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/57535fd5825c6c112b6489c27e469bc4143c1a2e..b27ae8a97d90e3a9da2a011b15b89a51d9f4fcc9:/src/rss_converter_twitter.com.xsl?ds=sidebyside diff --git a/src/rss_converter_twitter.com.xsl b/src/rss_converter_twitter.com.xsl index 58539ae..53bbb84 100644 --- a/src/rss_converter_twitter.com.xsl +++ b/src/rss_converter_twitter.com.xsl @@ -1,7 +1,7 @@ - + @@ -113,8 +113,8 @@ - - + + @@ -148,12 +148,17 @@ - <![CDATA[ + + - (Video) + (Video) + - + + white-space: pre-wrap; + + ]]> @@ -189,6 +194,8 @@ + + @@ -201,7 +208,12 @@ <xsl:value-of select="//a[contains(@class, 'profile-picture')]/@href"/> </url> </image> - <xsl:apply-templates select="//ol[@id='stream-items-id']/li[@data-item-id and @data-item-type='tweet']"/> + <xsl:apply-templates select="//ol[@id='stream-items-id']/li[@data-item-id and @data-item-type='tweet' and not(contains(@class, 'has-profile-promoted-tweet'))]"/> + + <!-- These rules will only match on permalink URLs --> + <xsl:apply-templates select="//div[@class='permalink-inner permalink-tweet-container']"/> + <xsl:apply-templates select="//div[@data-component-context='replies']//li[@data-item-id and @data-item-type='tweet' and not(contains(@class, 'has-profile-promoted-tweet'))]"/> + </channel> </rss> </xsl:template>