rss_converter_facebook.com.xsl: new wrapper classname
authorDavid Kalnischkies <david@kalnischkies.de>
Wed, 8 Feb 2017 23:52:00 +0000 (00:52 +0100)
committerAntonio Ospite <ao2@ao2.it>
Thu, 9 Feb 2017 11:48:20 +0000 (12:48 +0100)
Facebook seems to have changed the classname of the wrapping div
from "userContentWrapper" to "fbUserContent".

src/rss_converter_facebook.com.xsl

index 933d3d2..bff19d3 100644 (file)
@@ -52,7 +52,7 @@
         name="page-id"
         select="substring-after(//meta[@property='al:android:url']/@content, 'fb://page/')"/>
 
         name="page-id"
         select="substring-after(//meta[@property='al:android:url']/@content, 'fb://page/')"/>
 
-    <xsl:template match="//div[contains(@class, 'userContentWrapper')]">
+    <xsl:template match="//div[contains(@class, 'fbUserContent')]">
         <xsl:variable name="story-id" select=".//input[@name='ft_ent_identifier']/@value"/>
         <xsl:variable
             name="item-permalink"
         <xsl:variable name="story-id" select=".//input[@name='ft_ent_identifier']/@value"/>
         <xsl:variable
             name="item-permalink"
 
     <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, 'userContentWrapper')][1]//a[1]/@href"/>
+        <xsl:variable name="channel-link" select="//div[contains(@class, 'fbUserContent')][1]//a[1]/@href"/>
 
         <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>
                         <xsl:value-of select="//img[@class='profilePic img']/@src"/>
                     </url>
                 </image>
                         <xsl:value-of select="//img[@class='profilePic img']/@src"/>
                     </url>
                 </image>
-                <xsl:apply-templates select="//div[contains(@class, 'userContentWrapper')]"/>
+                <xsl:apply-templates select="//div[contains(@class, 'fbUserContent')]"/>
             </channel>
         </rss>
     </xsl:template>
             </channel>
         </rss>
     </xsl:template>