Fb2RSS

A Facebook to RSS conversion tool
git clone git://xatko.vsos.ethz.ch/Fb2RSS.git
Log | Files | Refs | Submodules

commit 93556d27fd56902c92b6b839722f137accd4879a
parent 8051e2583683904ae2339f3f5ebea5b56ae3463b
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Thu, 10 Sep 2015 12:19:27 +0200

Adapt to upstream-changes.

The title and URL are no longer available through meta-tags.

Diffstat:
fbstream.d | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/fbstream.d b/fbstream.d @@ -94,10 +94,9 @@ class FBStream : DRSS!(Post){ override public void parse(string document){ XmlNode[] arr; XmlNode root=readDocument(document); - arr=root.parseXPath(`//meta[@property="og:url"]`); - headers[0][1]=arr[0].getAttribute("content"); - arr=root.parseXPath(`//meta[@property="og:title"]`); - headers[1][1]=arr[0].getAttribute("content"); + arr=root.parseXPath(`//title`); + headers[1][1]=arr[0].getCData().idup; + headers[0][1]=url; XmlNode[] nodes=root.parseXPath(`//code`); generatePosts(nodes);