summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator/Src/CheckFeed.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-08-05 16:16:53 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-08-05 16:16:53 +0000
commit65b18d6e938fccdca0ca66513e7855ebbf296897 (patch)
treefea561a00986af1852117976ef7133758669193f /plugins/NewsAggregator/Src/CheckFeed.cpp
parent1af94ebb50d3c533e895c279ad78a9cf4c26d019 (diff)
fixed #743
git-svn-id: http://svn.miranda-ng.org/main/trunk@10076 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator/Src/CheckFeed.cpp')
-rw-r--r--plugins/NewsAggregator/Src/CheckFeed.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/NewsAggregator/Src/CheckFeed.cpp b/plugins/NewsAggregator/Src/CheckFeed.cpp
index 16dac94943..462e8d8728 100644
--- a/plugins/NewsAggregator/Src/CheckFeed.cpp
+++ b/plugins/NewsAggregator/Src/CheckFeed.cpp
@@ -163,6 +163,13 @@ VOID CheckCurrentFeed(MCONTACT hContact)
mir_free(string);
continue;
}
+ if (!lstrcmpi(xi.getName(child), _T("copyright")) && xi.getText(child)) {
+ TCHAR *string = mir_tstrdup(xi.getText(child));
+ ClearText(string);
+ db_set_s(hContact, "UserInfo", "MyNotes", _T2A(string));
+ mir_free(string);
+ continue;
+ }
if (!lstrcmpi(xi.getName(child), _T("image"))) {
for (int x = 0; x < xi.getChildCount(child); x++) {
HXML imageval = xi.getChild(child, x);
@@ -210,6 +217,7 @@ VOID CheckCurrentFeed(MCONTACT hContact)
TCHAR *title = NULL, *link = NULL, *datetime = NULL, *descr = NULL, *author = NULL, *comments = NULL, *guid = NULL, *category = NULL;
for (int z = 0; z < xi.getChildCount(child); z++) {
HXML itemval = xi.getChild(child, z);
+ TCHAR *tmp = (TCHAR*)xi.getName(itemval);
if (!lstrcmpi(xi.getName(itemval), _T("title"))) {
TCHAR *string = mir_tstrdup(xi.getText(itemval));
ClearText(string);
@@ -231,7 +239,7 @@ VOID CheckCurrentFeed(MCONTACT hContact)
else if (!lstrcmpi(xi.getName(itemval), _T("dc:date"))) {
datetime = (TCHAR *)xi.getText(itemval);
}
- else if (!lstrcmpi(xi.getName(itemval), _T("description"))) {
+ else if (!lstrcmpi(xi.getName(itemval), _T("description")) || !lstrcmpi(xi.getName(itemval), _T("encoded"))) {
TCHAR *string = mir_tstrdup(xi.getText(itemval));
ClearText(string);
descr = mir_tstrdup(string);