Fb2RSS

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

commit b37211256d85b94cf3ea41887ce6827e20290904
parent 0f0a8e57b8a1a3cedf08a3df47d8d7eee3f9cfd7
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Sat, 23 Jan 2016 13:57:22 +0100

Use a more intelligent way to detect the captcha.

Just searching for captcha is inreliable.
Search for the image-url instead.

Diffstat:
fbstream.d | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fbstream.d b/fbstream.d @@ -113,7 +113,7 @@ class FBStream : DRSS!(Post){ */ static bool captchaSolved(in char[] buf){ import std.algorithm.searching : canFind; - return !canFind(buf, "captcha"); + return !canFind(buf, "tfbimage.php?captcha_challenge_code"); } /**