tracker r3057 - in trunk: . src/tracker-extract



Author: carlosg
Date: Wed Mar 11 17:02:46 2009
New Revision: 3057
URL: http://svn.gnome.org/viewvc/tracker?rev=3057&view=rev

Log:
2009-03-11  Carlos Garnacho  <carlos imendio com>

        * src/tracker-extract/tracker-extract-pdf.c (extract_pdf): Also
        include Doc:Created in the metadata. Fixes #489876.

Modified:
   trunk/ChangeLog
   trunk/src/tracker-extract/tracker-extract-pdf.c

Modified: trunk/src/tracker-extract/tracker-extract-pdf.c
==============================================================================
--- trunk/src/tracker-extract/tracker-extract-pdf.c	(original)
+++ trunk/src/tracker-extract/tracker-extract-pdf.c	Wed Mar 11 17:02:46 2009
@@ -97,6 +97,12 @@
 				     tracker_escape_metadata (keywords));
 	}
 
+	if (creation_date > 0) {
+		g_hash_table_insert (metadata,
+				     g_strdup ("Doc:Created"),
+				     tracker_date_to_string ((time_t) creation_date));
+	}
+
 	g_hash_table_insert (metadata,
 			     g_strdup ("Doc:PageCount"),
 			     tracker_escape_metadata_printf ("%d", poppler_document_get_n_pages (document)));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]