Fb2RSS

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

commit 8657d584cc067c11b42e15147bfc3c30e02c4996
parent 7e55b0b5354a7f3a2409fb852bfb3f5fd89a5b78
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Tue, 30 Jun 2015 21:48:14 +0200

Directly read data from curl.

The get-Method does some weird UTF-8 fuckups, but since the document
gets delivered in UTF-8 anyway, this doesn't even matter.

Diffstat:
Fb2RSS.d | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Fb2RSS.d b/Fb2RSS.d @@ -104,7 +104,9 @@ class FBStream : RandomFiniteAssignable!(Post){ else{ auto h=HTTP(); h.setUserAgent(userAgent); - document=cast(string)get(fetch_url,h); + h.url=fetch_url; + h.onReceive = (ubyte[] data) {document~=cast(string)data; return data.length; }; + h.perform(); } } public void parse(){