[tracker] Fixed some Image: predicates to use Nepomuk
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker] Fixed some Image: predicates to use Nepomuk
- Date: Wed, 22 Apr 2009 07:59:53 -0400 (EDT)
commit eff63058db94dedba180d9c4dd5087efe6de6f3c
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Apr 22 13:59:18 2009 +0200
Fixed some Image: predicates to use Nepomuk
---
src/tracker-extract/tracker-extract-gstreamer.c | 6 +++---
src/tracker-extract/tracker-extract-mp3.c | 12 ++++++------
src/tracker-extract/tracker-xmp.c | 4 ++--
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index 1c75aaa..d44c0a8 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -894,7 +894,7 @@ tracker_extract_gstreamer (const gchar *uri,
g_slice_free (MetadataExtractor, extractor);
if (type == EXTRACT_MIME_IMAGE) {
- if (!tracker_statement_list_find (metadata, uri, "Image:Date")) {
+ if (!tracker_statement_list_find (metadata, uri, NIE_PREFIX "contentCreated")) {
struct stat st;
if (g_lstat (uri, &st) >= 0) {
@@ -903,8 +903,8 @@ tracker_extract_gstreamer (const gchar *uri,
date = tracker_date_to_string (st.st_mtime);
tracker_statement_list_insert (metadata, uri,
- "Image:Date",
- date);
+ NIE_PREFIX "contentCreated",
+ date);
g_free (date);
}
diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index d3cb7c3..a677c05 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -504,9 +504,9 @@ mp3_parse_header (const gchar *data,
tracker_statement_list_insert (metadata, uri,
NFO_PREFIX "codec",
"MPEG");
- tracker_statement_list_insert (metadata, uri,
+/* tracker_statement_list_insert (metadata, uri,
"Audio:CodecVersion",
- "2");
+ "2");*/
mpeg_ver = MPEG_V2;
spfp8 = 72;
break;
@@ -514,9 +514,9 @@ mp3_parse_header (const gchar *data,
tracker_statement_list_insert (metadata, uri,
NFO_PREFIX "codec",
"MPEG");
- tracker_statement_list_insert (metadata, uri,
+/* tracker_statement_list_insert (metadata, uri,
"Audio:CodecVersion",
- "1");
+ "1");*/
mpeg_ver = MPEG_V1;
spfp8 = 144;
break;
@@ -524,9 +524,9 @@ mp3_parse_header (const gchar *data,
tracker_statement_list_insert (metadata, uri,
NFO_PREFIX "codec",
"MPEG");
- tracker_statement_list_insert (metadata, uri,
+/* tracker_statement_list_insert (metadata, uri,
"Audio:CodecVersion",
- "2.5");
+ "2.5");*/
mpeg_ver = MPEG_V25;
spfp8 = 72;
break;
diff --git a/src/tracker-extract/tracker-xmp.c b/src/tracker-extract/tracker-xmp.c
index 3e3782a..4216b56 100644
--- a/src/tracker-extract/tracker-xmp.c
+++ b/src/tracker-extract/tracker-xmp.c
@@ -401,8 +401,8 @@ tracker_xmp_iter_simple (const gchar *uri,
NFO_PREFIX "title", value);
}
else if (strcmp (name, "DateTimeOriginal") == 0) {
- tracker_statement_list_insert (metadata, uri,
- "Image:Date", value);
+ tracker_statement_list_insert (metadata, uri,
+ NIE_PREFIX "contentCreated", value);
}
else if (strcmp (name, "Artist") == 0) {
tracker_statement_list_insert (metadata, ":", RDF_TYPE, NCO_PREFIX "Contact");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]