rss_converter_twitter.com.xsl: fix getting the profile picture
authorAntonio Ospite <ao2@ao2.it>
Thu, 24 Apr 2014 10:02:17 +0000 (12:02 +0200)
committerAntonio Ospite <ao2@ao2.it>
Thu, 24 Apr 2014 10:11:53 +0000 (12:11 +0200)
Some more values are added tot he class attribute so the old equality
check does not work anymore.

Use a contains() check, this is more future proof and allows also to
support both the classic and the new profile pages.

rss_converter_twitter.com.xsl

index db78963..65521ca 100644 (file)
@@ -80,7 +80,7 @@
                 </description>
                 <image>
                     <url>
-                        <xsl:value-of select="//a[@class='profile-picture media-thumbnail']/@href"/>
+                        <xsl:value-of select="//a[contains(@class, 'profile-picture media-thumbnail')]/@href"/>
                     </url>
                 </image>
                 <xsl:apply-templates select="//*[@data-item-type='tweet']"/>