summaryrefslogtreecommitdiff
path: root/packages/libmrss/files/atom-changes.patch
blob: 42f74d00f21540d17a871166e31b9376bd0efa13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Make sure to always set a pubDate

Index: libmrss-0.17/src/mrss_parser.c
===================================================================
--- libmrss-0.17.orig/src/mrss_parser.c	2007-03-22 19:40:54.000000000 +0100
+++ libmrss-0.17/src/mrss_parser.c	2007-03-22 19:44:15.000000000 +0100
@@ -270,6 +270,10 @@
 		   && data->version == MRSS_VERSION_ATOM_1_0)
 	    item->pubDate =
 	      __mrss_atom_prepare_date (nxmle_get_string (cur, NULL));
+	  else if (!strcmp(cur->value, "updated" ) && !item->pubDate
+		  && data->version == MRSS_VERSION_ATOM_1_0)
+	    item->pubDate =
+         __mrss_atom_prepare_date (nxmle_get_string (cur, NULL));
 
 	  /* issued -> pubDate (Atom 0.3) */
 	  else if (!strcmp (cur->value, "issued") && !item->pubDate)