From: Antonio Ospite <ao2@ao2.it> Date: Fri, 27 Nov 2015 11:47:50 +0000 (+0100) Subject: rss_converter_twitter.com.xsl: restrict the criterion to match actual tweets X-Git-Tag: v0.5~5 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/b8bf7a34c475cf0b9c883d461198356ae7786412 rss_converter_twitter.com.xsl: restrict the criterion to match actual tweets By only using li[@data-item-type='tweet'] sometimes void entries where selected, and in particular the ones under <ol class="activity-popup-users">. So just pick the items under <ol id="stream-items-id"> as the actual tweets with valid contents in them. --- diff --git a/rss_converter_twitter.com.xsl b/rss_converter_twitter.com.xsl index 9185a54..3cded38 100644 --- a/rss_converter_twitter.com.xsl +++ b/rss_converter_twitter.com.xsl @@ -96,7 +96,7 @@ <xsl:value-of select="//a[contains(@class, 'profile-picture media-thumbnail')]/@href"/> </url> </image> - <xsl:apply-templates select="//li[@data-item-type='tweet']"/> + <xsl:apply-templates select="//ol[@id='stream-items-id']/li[@data-item-type='tweet']"/> </channel> </rss> </xsl:template>