diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-05-16 11:06:02 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-05-16 11:06:02 +0000 |
commit | 76e588cc7b98d0dc693d53df63781b4b49401e65 (patch) | |
tree | 140c307e00f6d7672cc0ff9741590c4ff0672b9b /protocols/FacebookRM | |
parent | 99f1e39a46f191bf60bc138206437bb5ce00834b (diff) |
Facebook: Fixed loading newsfeeds.
git-svn-id: http://svn.miranda-ng.org/main/trunk@4667 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 35aaa52bff..da46e3c8f0 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -699,10 +699,13 @@ void FacebookProto::ProcessFeeds(void* data) pos += 5;
std::string post_header = utils::text::source_get_value(&post, 4, "<h5 class=", "uiStreamHeadline", ">", "<\\/h5>");
- std::string post_message = utils::text::source_get_value(&post, 3, "<h5 class=\"uiStreamMessage userContentWrapper", ">", "<\\/h5>");
+ std::string post_message = utils::text::source_get_value(&post, 3, "<h5 class=\\\"uiStreamMessage userContentWrapper", ">", "<\\/h5>");
std::string post_link = utils::text::source_get_value(&post, 3, "<span class=\\\"uiStreamSource\\\"", ">", "<\\/span>");
std::string post_attach = utils::text::source_get_value(&post, 4, "<div class=", "uiStreamAttachments", ">", "<form");
+ //std::string post_time = utils::text::source_get_value(&post_link, 2, "data-utime=\\\"", "\\\"");
+ //std::string post_time_text = utils::text::source_get_value(&post_link, 3, "class=\\\"timestamp livetimestamp", ">", "<");
+
// in title keep only name, end of events like "X shared link" put into message
pos2 = post_header.find("<\\/a>") + 5;
post_message = post_header.substr(pos2, post_header.length() - pos2) + post_message;
@@ -727,6 +730,8 @@ void FacebookProto::ProcessFeeds(void* data) utils::text::remove_html(
utils::text::edit_html(post_message))));
+ //nf->text += "\n" + post_time_text;
+
if (!nf->title.length() || !nf->text.length())
{
delete nf;
|