evolution-rss r200 - in trunk: . src
- From: lucilanga svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-rss r200 - in trunk: . src
- Date: Mon, 3 Mar 2008 06:42:20 +0000 (GMT)
Author: lucilanga
Date: Mon Mar 3 06:42:20 2008
New Revision: 200
URL: http://svn.gnome.org/viewvc/evolution-rss?rev=200&view=rev
Log:
parse sumary in case of missing content
Modified:
trunk/ChangeLog
trunk/src/rss.c
Modified: trunk/src/rss.c
==============================================================================
--- trunk/src/rss.c (original)
+++ trunk/src/rss.c Mon Mar 3 06:42:20 2008
@@ -3196,6 +3196,7 @@
stream = camel_stream_mem_new ();
// w/out an format argument this throws and seg fault
camel_stream_printf (stream, "%s", CF->body);
+ g_print ("mybody:%s\n", CF->body);
camel_data_wrapper_construct_from_stream (rtext, stream);
camel_object_unref (stream);
@@ -3394,6 +3395,9 @@
}
}
if (strcasecmp (node->name, match)==0) {
+// g_print("node children:%s|\n", node->children);
+// if (node->children)
+// g_print("node children next:%s|\n", node->children->next);
if (node->children != NULL
&& node->children->next != NULL) {
#ifdef RDF_DEBUG
@@ -3939,12 +3943,15 @@
}
//FIXME this might need xmlFree when namespacing
b = layer_find_tag (el->children, "description",
- layer_find_tag (el->children, "content", NULL));
+ layer_find_tag (el->children, "content",
+ layer_find_tag (el->children, "summary",
+ NULL)));
if (!b)
b = g_strdup(layer_find (el->children, "description",
layer_find (el->children, "content",
layer_find (el->children, "summary", "No information"))));
+ g_print("b2:%s|\n", b);
char *d = layer_find (el->children, "pubDate", NULL);
//date in dc module format
@@ -4001,8 +4008,10 @@
(void)fseek(fr, 0L, SEEK_SET);
}
+// g_print("body1:%s\n", b);
while (gtk_events_pending())
gtk_main_iteration ();
+// g_print("body2:%s\n", b);
if (!occ)
{
@@ -4012,6 +4021,7 @@
CF->q = g_strdup(q);
CF->sender = g_strdup(sender);
CF->subj = g_strdup(p);
+// g_print("body3:%s\n", b);
CF->body = g_strdup(b);
CF->date = g_strdup(d);
CF->dcdate = g_strdup(d2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]