diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-07-18 12:46:14 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-07-18 12:46:14 +0000 |
commit | d21e85d24b51b31cd1ad0140e8c59c4f4d3b85fd (patch) | |
tree | 36264e073b1daf2c70f49eb82ece7e1d6d2ca9bf /protocols | |
parent | b99d701ec9d87a0ebf78f51d500612fb3fccd088 (diff) |
Facebook: Fix searching people for some users
git-svn-id: http://svn.miranda-ng.org/main/trunk@9845 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 0d87147a58..7dce1b8b14 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -1143,12 +1143,12 @@ void FacebookProto::SearchAckThread(void *targ) if (resp.code == HTTP_CODE_OK) { - std::string items = utils::text::source_get_value(&resp.data, 2, "<body", "</body>"); + std::string items = utils::text::source_get_value(&resp.data, 4, "<body", "name=\"charset_test\"", "<table", "</body>"); std::string::size_type pos = 0; std::string::size_type pos2 = 0; - while ((pos = items.find("<td class=\"pic\">", pos)) != std::string::npos) { + while ((pos = items.find("<tr", pos)) != std::string::npos) { std::string item = items.substr(pos, items.find("</tr>", pos) - pos); pos++; count++; @@ -1156,10 +1156,10 @@ void FacebookProto::SearchAckThread(void *targ) if (id.empty()) id = utils::text::source_get_value2(&item, "?ids=", "&\""); - std::string name = utils::text::source_get_value(&item, 4, "<td class=\"name\">", "<a", ">", "</"); + std::string name = utils::text::source_get_value(&item, 3, "<a", ">", "</"); std::string surname; std::string nick; - std::string common = utils::text::source_get_value(&item, 2, "<span class=\"mfss fcg\">", "</span>"); + std::string common = utils::text::source_get_value(&item, 4, "</a>", "<span", ">", "</span>"); if ((pos2 = name.find("<span class=\"alternate_name\">")) != std::string::npos) { nick = name.substr(pos2 + 30, name.length() - pos2 - 31); // also remove brackets around nickname @@ -1225,7 +1225,7 @@ void FacebookProto::SearchIdAckThread(void *targ) if (resp.code == HTTP_CODE_OK) { - std::string about = utils::text::source_get_value(&resp.data, 2, "<div class=\"timeline", "id=\"footer"); + std::string about = utils::text::source_get_value(&resp.data, 2, "<div id=\"root\"", "id=\"footer\""); std::string id = utils::text::source_get_value2(&about, ";id=", "&\""); if (id.empty()) |