[tracker/wip/extract-graphs] tracker-extract, mp3: Don't use the graph in the deletes
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/extract-graphs] tracker-extract, mp3: Don't use the graph in the deletes
- Date: Tue, 6 Sep 2011 08:19:43 +0000 (UTC)
commit 873080862975f92590042468ef725cbf6b244143
Author: Philip Van Hoof <philip codeminded be>
Date: Tue Sep 6 10:18:21 2011 +0200
tracker-extract, mp3: Don't use the graph in the deletes
src/tracker-extract/tracker-extract-mp3.c | 51 -----------------------------
1 files changed, 0 insertions(+), 51 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index a126458..2c944f8 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -2345,31 +2345,14 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
if (md.track_count > 0) {
tracker_sparql_builder_delete_open (preupdate, NULL);
- if (graph) {
- tracker_sparql_builder_graph_open (preupdate, graph);
- }
-
tracker_sparql_builder_subject_iri (preupdate, md.album_uri);
tracker_sparql_builder_predicate (preupdate, "nmm:albumTrackCount");
tracker_sparql_builder_object_variable (preupdate, "unknown");
-
- if (graph) {
- tracker_sparql_builder_graph_close (preupdate);
- }
tracker_sparql_builder_delete_close (preupdate);
-
tracker_sparql_builder_where_open (preupdate);
- if (graph) {
- tracker_sparql_builder_graph_open (preupdate, graph);
- }
-
tracker_sparql_builder_subject_iri (preupdate, md.album_uri);
tracker_sparql_builder_predicate (preupdate, "nmm:albumTrackCount");
tracker_sparql_builder_object_variable (preupdate, "unknown");
-
- if (graph) {
- tracker_sparql_builder_graph_close (preupdate);
- }
tracker_sparql_builder_where_close (preupdate);
tracker_sparql_builder_insert_open (preupdate, NULL);
@@ -2468,59 +2451,25 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
md.set_number > 0 ? md.set_number : 1);
tracker_sparql_builder_delete_open (preupdate, NULL);
- if (graph) {
- tracker_sparql_builder_graph_open (preupdate, graph);
- }
-
tracker_sparql_builder_subject_iri (preupdate, album_disc_uri);
tracker_sparql_builder_predicate (preupdate, "nmm:setNumber");
tracker_sparql_builder_object_variable (preupdate, "unknown");
-
- if (graph) {
- tracker_sparql_builder_graph_close (preupdate);
- }
tracker_sparql_builder_delete_close (preupdate);
-
tracker_sparql_builder_where_open (preupdate);
- if (graph) {
- tracker_sparql_builder_graph_open (preupdate, graph);
- }
-
tracker_sparql_builder_subject_iri (preupdate, album_disc_uri);
tracker_sparql_builder_predicate (preupdate, "nmm:setNumber");
tracker_sparql_builder_object_variable (preupdate, "unknown");
-
- if (graph) {
- tracker_sparql_builder_graph_close (preupdate);
- }
tracker_sparql_builder_where_close (preupdate);
tracker_sparql_builder_delete_open (preupdate, NULL);
- if (graph) {
- tracker_sparql_builder_graph_open (preupdate, graph);
- }
-
tracker_sparql_builder_subject_iri (preupdate, album_disc_uri);
tracker_sparql_builder_predicate (preupdate, "nmm:albumDiscAlbum");
tracker_sparql_builder_object_variable (preupdate, "unknown");
-
- if (graph) {
- tracker_sparql_builder_graph_close (preupdate);
- }
tracker_sparql_builder_delete_close (preupdate);
-
tracker_sparql_builder_where_open (preupdate);
- if (graph) {
- tracker_sparql_builder_graph_open (preupdate, graph);
- }
-
tracker_sparql_builder_subject_iri (preupdate, album_disc_uri);
tracker_sparql_builder_predicate (preupdate, "nmm:albumDiscAlbum");
tracker_sparql_builder_object_variable (preupdate, "unknown");
-
- if (graph) {
- tracker_sparql_builder_graph_close (preupdate);
- }
tracker_sparql_builder_where_close (preupdate);
tracker_sparql_builder_insert_open (preupdate, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]