[gnome-documents/wip/skydrive] miner: insert	windows-live:skydrive:<ID> as nie:url
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-documents/wip/skydrive] miner: insert	windows-live:skydrive:<ID> as nie:url
- Date: Wed, 30 May 2012 21:38:32 +0000 (UTC)
commit 6ccd9b299a72f4270e6fd4c28287ec2b2195d7db
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed May 30 23:36:21 2012 +0200
    miner: insert windows-live:skydrive:<ID> as nie:url
    
    This is same as the nao:identifier for files on Skydrive.
    
    Fixes: https://bugzilla.gnome.org/666535
 src/miner/gd-zpj-miner.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/miner/gd-zpj-miner.c b/src/miner/gd-zpj-miner.c
index ae67512..9b24a01 100644
--- a/src/miner/gd-zpj-miner.c
+++ b/src/miner/gd-zpj-miner.c
@@ -293,6 +293,15 @@ account_miner_job_process_entry (AccountMinerJob *job,
      datasource_urn, resource,
      "nie:dataSource", datasource_urn);
 
+  gd_miner_tracker_sparql_connection_insert_or_replace_triple
+    (job->connection,
+     job->cancellable, error,
+     datasource_urn, resource,
+     "nie:url", identifier);
+
+  if (*error != NULL)
+    goto out;
+
   if (ZPJ_IS_SKYDRIVE_FILE (entry))
     {
       gchar *parent_resource_urn, *parent_identifier;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]