projects
/
tweeper.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e8fca1b
)
rss_converter_facebook.com.xsl: fix channel link, image, and description
author
Antonio Ospite <ao2@ao2.it>
Mon, 6 Nov 2017 17:15:59 +0000
(18:15 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Mon, 6 Nov 2017 17:15:59 +0000
(18:15 +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
283549c
..
520d6ce
100644
(file)
--- a/
src/rss_converter_facebook.com.xsl
+++ b/
src/rss_converter_facebook.com.xsl
@@
-106,8
+106,8
@@
<xsl:template match="/">
<xsl:variable name="channel-title" select="//title"/>
<xsl:template match="/">
<xsl:variable name="channel-title" select="//title"/>
- <xsl:variable name="channel-link" select="//
div[contains(@class, 'fbUserStory') or contains(@class, 'userContentWrapper')][1]//a[1]/@href
"/>
- <xsl:variable name="channel-image" select="//
div[contains(@class, 'fbUserStory') or contains(@class, 'userContentWrapper')][1]//a[1]//img/@src
"/>
+ <xsl:variable name="channel-link" select="//
meta[@property='og:url']/@content
"/>
+ <xsl:variable name="channel-image" select="//
meta[@property='og:image']/@content
"/>
<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>
@@
-121,7
+121,7
@@
</link>
<description>
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
</link>
<description>
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
- <xsl:
copy-of select="//div[@data-id='1']/node()
"/>
+ <xsl:
value-of select="//meta[@property='og:description']/@content
"/>
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</description>
<image>
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</description>
<image>