[tracker/writeback] tracker-extract-playlist: Add nie:IE to nfo:MediaFileListEntry.



commit d1861fdac20cd621cbcccf3c9340c4a96ca7b7bf
Author: Carlos Garnacho <carlos lanedo com>
Date:   Tue Dec 22 17:56:23 2009 +0100

    tracker-extract-playlist: Add nie:IE to nfo:MediaFileListEntry.
    
    Also, nie:isStoredAs has been added to nfo:MediaList

 src/tracker-extract/tracker-extract-playlist.c |    6 ++++++
 src/tracker-writeback/Makefile.am              |   12 ++++++------
 2 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-playlist.c b/src/tracker-extract/tracker-extract-playlist.c
index 4311959..e7326aa 100644
--- a/src/tracker-extract/tracker-extract-playlist.c
+++ b/src/tracker-extract/tracker-extract-playlist.c
@@ -93,6 +93,9 @@ entry_parsed (TotemPlParser *parser, const gchar *to_uri, GHashTable *to_metadat
 
 	tracker_sparql_builder_predicate (data->metadata, "a");
 	tracker_sparql_builder_object (data->metadata, "nie:DataObject");
+	tracker_sparql_builder_predicate (data->metadata, "a");
+	tracker_sparql_builder_object (data->metadata, "nie:InformationElement");
+
 	tracker_sparql_builder_predicate (data->metadata, "nie:isStoredAs");
 	tracker_sparql_builder_object_iri (data->metadata, data->uri);
 	tracker_sparql_builder_predicate (data->metadata, "nie:url");
@@ -139,6 +142,9 @@ extract_playlist (const gchar *uri,
 	tracker_sparql_builder_predicate (metadata, "a");
 	tracker_sparql_builder_object (metadata, "nfo:MediaList");
 
+	tracker_sparql_builder_predicate (metadata, "nie:isStoredAs");
+	tracker_sparql_builder_object_iri (metadata, uri);
+
 	result = totem_pl_parser_parse (pl, uri, FALSE);
 
 	switch (result) {
diff --git a/src/tracker-writeback/Makefile.am b/src/tracker-writeback/Makefile.am
index 0d67a81..857287c 100644
--- a/src/tracker-writeback/Makefile.am
+++ b/src/tracker-writeback/Makefile.am
@@ -39,12 +39,12 @@ libwriteback_xmp_la_LIBADD = $(GLIB2_LIBS) $(GCOV_LIBS) $(EXEMPI_LIBS)
 endif
 
 # Playlists
-#if HAVE_TOTEM_PL_PARSER
-#modules_LTLIBRARIES += libwriteback-playlist.la
-#libwriteback_playlist_la_SOURCES = tracker-writeback-playlist.c
-#libwriteback_playlist_la_LDFLAGS = $(module_flags)
-#libwriteback_playlist_la_LIBADD = $(GLIB2_LIBS) $(GCOV_LIBS) $(TOTEM_PL_PARSER_LIBS)
-#endif
+if HAVE_TOTEM_PL_PARSER
+modules_LTLIBRARIES += libwriteback-playlist.la
+libwriteback_playlist_la_SOURCES = tracker-writeback-playlist.c
+libwriteback_playlist_la_LDFLAGS = $(module_flags)
+libwriteback_playlist_la_LIBADD = $(GLIB2_LIBS) $(GCOV_LIBS) $(TOTEM_PL_PARSER_LIBS)
+endif
 
 #
 # Binaries



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