From e9718cf534492cc4fafde23ab1b37089c35a6726 Mon Sep 17 00:00:00 2001 From: Antonio Ospite <ao2@ao2.it> Date: Thu, 24 Apr 2014 12:02:17 +0200 Subject: [PATCH] rss_converter_twitter.com.xsl: fix getting the profile picture 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rss_converter_twitter.com.xsl b/rss_converter_twitter.com.xsl index db78963..65521ca 100644 --- a/rss_converter_twitter.com.xsl +++ b/rss_converter_twitter.com.xsl @@ -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']"/> -- 2.1.4