rss_converter_twitter.com.xsl: restrict the criterion to match actual tweets
authorAntonio Ospite <ao2@ao2.it>
Fri, 27 Nov 2015 11:47:50 +0000 (12:47 +0100)
committerAntonio Ospite <ao2@ao2.it>
Fri, 27 Nov 2015 11:52:45 +0000 (12:52 +0100)
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.

rss_converter_twitter.com.xsl

index 9185a54..3cded38 100644 (file)
@@ -96,7 +96,7 @@
                         <xsl:value-of select="//a[contains(@class, 'profile-picture media-thumbnail')]/@href"/>
                     </url>
                 </image>
                         <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>
             </channel>
         </rss>
     </xsl:template>