X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/b187bb677361d17a468abf749332d081a194b4bd..b27ae8a97d90e3a9da2a011b15b89a51d9f4fcc9:/src/rss_converter_twitter.com.xsl diff --git a/src/rss_converter_twitter.com.xsl b/src/rss_converter_twitter.com.xsl index c154141..53bbb84 100644 --- a/src/rss_converter_twitter.com.xsl +++ b/src/rss_converter_twitter.com.xsl @@ -1,7 +1,7 @@ - + @@ -104,17 +104,17 @@ - + - + - - + + @@ -145,15 +145,20 @@ - + - <![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>