[evolution-rss] Use atom:published for date when parsing atom feeds
- From: Lucian Langa <lucilanga src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-rss] Use atom:published for date when parsing atom feeds
- Date: Sun, 6 Dec 2009 21:18:53 +0000 (UTC)
commit afd4709fd138ef4b98331412d931600357c2905e
Author: Lucian Langa <lucilanga gnome org>
Date: Sun Dec 6 10:07:48 2009 +0200
Use atom:published for date when parsing atom feeds
src/parser.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/parser.c b/src/parser.c
index a5bbf96..d159e63 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -941,7 +941,8 @@ parse_channel_line(xmlNode *top, gchar *feed_name, char *main_date)
if (!d) {
d2 = (gchar *)layer_find (top, "date", NULL); //RSS2
if (!d2) {
- d2 = (gchar *)layer_find(top, "updated", NULL); //ATOM
+ d2 = (gchar *)layer_find(top, "published",
+ layer_find(top, "updated", NULL)); //ATOM
if (!d2) //take channel date if exists
d2 = g_strdup(main_date);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]