Enlightenment CVS committal
Author : dj2
Project : misc
Module : eke
Dir : misc/eke/src
Modified Files:
eke_parse.c
Log Message:
- pull the descriptions/taglines of the feeds
===================================================================
RCS file: /cvsroot/enlightenment/misc/eke/src/eke_parse.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- eke_parse.c 30 Dec 2004 05:03:09 -0000 1.4
+++ eke_parse.c 30 Dec 2004 17:42:54 -0000 1.5
@@ -247,6 +247,11 @@
} else if (!strcasecmp(node->name, "entry")) {
eke_parse_atom_item_parse(feed, doc, node->xmlChildrenNode);
+
+ } else if (!strcasecmp(node->name, "tagline")) {
+ tmp = node->xmlChildrenNode;
+ feed->desc = xmlNodeListGetString(doc, tmp, 1);
+ strtrim(feed->desc);
}
node = node->next;
@@ -339,6 +344,12 @@
strtrim(ptr);
feed->link = ptr;
+ } else if (!strcasecmp(node->name, "description")) {
+ tmp = node->xmlChildrenNode;
+ ptr = xmlNodeListGetString(doc, tmp, 1);
+ strtrim(ptr);
+ feed->desc = ptr;
+
}
node = node->next;
}
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs