projects
/
tweeper.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0ea00a5
)
rss_converter_facebook.com.xsl: fix the URL of the channel image
author
Antonio Ospite <ao2@ao2.it>
Thu, 9 Feb 2017 14:49:59 +0000
(15:49 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Thu, 9 Feb 2017 17:23:56 +0000
(18:23 +0100)
src/rss_converter_facebook.com.xsl
patch
|
blob
|
history
diff --git
a/src/rss_converter_facebook.com.xsl
b/src/rss_converter_facebook.com.xsl
index
bff19d3
..
fc4f272
100644
(file)
--- a/
src/rss_converter_facebook.com.xsl
+++ b/
src/rss_converter_facebook.com.xsl
@@
-107,6
+107,7
@@
<xsl:template match="/">
<xsl:variable name="channel-title" select="//title"/>
<xsl:variable name="channel-link" select="//div[contains(@class, 'fbUserContent')][1]//a[1]/@href"/>
<xsl:template match="/">
<xsl:variable name="channel-title" select="//title"/>
<xsl:variable name="channel-link" select="//div[contains(@class, 'fbUserContent')][1]//a[1]/@href"/>
+ <xsl:variable name="channel-image" select="//div[contains(@class, 'fbUserContent')][1]//a[1]//img/@src"/>
<rss version="2.0">
<xsl:attribute name="xml:base"><xsl:value-of select="$BaseURL" /></xsl:attribute>
<rss version="2.0">
<xsl:attribute name="xml:base"><xsl:value-of select="$BaseURL" /></xsl:attribute>
@@
-131,7
+132,7
@@
<xsl:value-of select="$channel-link"/>
</link>
<url>
<xsl:value-of select="$channel-link"/>
</link>
<url>
- <xsl:value-of select="
//img[@class='profilePic img']/@src
"/>
+ <xsl:value-of select="
$channel-image
"/>
</url>
</image>
<xsl:apply-templates select="//div[contains(@class, 'fbUserContent')]"/>
</url>
</image>
<xsl:apply-templates select="//div[contains(@class, 'fbUserContent')]"/>